1 solutions
-
0
C :
#include<stdio.h> int main() { int a,b,c,d; scanf("%d%d%d",&a,&b,&c); d=(a+b+c)/3; printf("%d\n",d); return 0; }C++ :
#include<stdio.h> int main() { int a,b,c,d; scanf("%d%d%d",&a,&b,&c); d=(a+b+c)/3; printf("%d\n",d); return 0; }Pascal :
var a,b,c:longint; begin readln(c,a,b); writeln((c+b+a)/3:0:0); end.
- 1
Information
- ID
- 20130
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By