Show More
Commit Description:
add options for grading all submissions of a specific problem (grafted from branch algo-bm 8ed1c0aa59eaf8e22e40fc765c1fba4ac88a34b5)
Commit Description:
add options for grading all submissions of a specific problem (grafted from branch algo-bm 8ed1c0aa59eaf8e22e40fc765c1fba4ac88a34b5)
File last commit:
Show/Diff file:
Action:
test/data/raw/sum/sum.c | 14 lines | 177 B | text/x-c | CLexer |
#include <stdio.h>
main()
{
int n, x, total;
int i;
scanf("%d",&n);
total = 0;
for(i=0; i<n; i++) {
scanf("%d",&x);
total += x;
}
printf("%d\n",total);
}