# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20215 | jjyoonki | 지능형 기차 2 (KOI11_train2) | C11 | 1 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int main(void) {
int a, b, n;
int s, smax;
s = 0;
smax = 0;
for( n=0 ; n<10 ; n++ ){
scanf( "%d %d", &a, &b );
s += (b-a);
if( smax<s )
smax = s;
}
printf( "%d\n", smax );
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |