# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
733376 | rainboy | 지능형 기차 2 (KOI11_train2) | C11 | 1 ms | 284 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>
#define N 10
int max(int a, int b) { return a > b ? a : b; }
int main() {
int i, a, b, c, c_;
c = 0, c_ = 0;
for (i = 0; i < N; i++) {
scanf("%d%d", &a, &b);
c_ = max(c_, c += b - a);
}
printf("%d\n", c_);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |