blob: bfdd7d03982a990856598d3f089238436ba38f28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
int main(int argc, char*argv[])
{
int tot=0;
char s[128];
gets(s);
while(!feof(stdin))
{
tot+=atoi(s);
gets(s);
}
printf("%d\n",tot);
}
|