1 solutions
-
0
C :
#include<stdio.h> int main() { int a,b; scanf("%d,%d", &a, &b); printf("%d", a>b?a:b); return 0; }C++ :
#include<stdio.h> int GetMax(int a,int b); int main() { int x,y,max; scanf("%d,%d",&x,&y); max=GetMax(x,y); printf("%d",max); return 0; } int GetMax(int m,int n) { if(m>=n) return m; else return n; }
- 1
Information
- ID
- 17174
- Time
- 1000ms
- Memory
- 2MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By