1 solutions
-
0
C++ :
#include "stdio.h" #define max(a,b,c) if(b>a) a=b;if(c>a) a=c; double m(double a,double b,double c) { if(b>a) a=b; if(c>a) a=c; return a; } int main(int argc, char* argv[]) { double a,b,c; while(~scanf("%lf%lf%lf",&a,&b,&c)) { printf("%.3f\n",m(a,b,c)); max(a,b,c); printf("%.3f\n",a); } return 0; }
- 1
Information
- ID
- 19444
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- (None)
- # Submissions
- 0
- Accepted
- 0
- Uploaded By