#include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main(){ int a,b,c; int max; int max1; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ max = a>b?a:b; max1 = max>c?max:c; printf("%d\n",max1); } return 0; } |
Double click to view unformatted code.