# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
106169 | parkj2180 | 지능형 기차 2 (KOI11_train2) | C++14 | 3 ms | 384 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() {
int sum=0, max = 0;
for (int i = 0; i < 10; i++) {
int a, b;
scanf("%d%d", &a, &b);
sum = sum - a + b;
if (max < sum) max = sum;
}
printf("%d", max);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |