# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
159557 | geon040702 | 지능형 기차 2 (KOI11_train2) | C++14 | 2 ms | 504 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 <bits/stdc++.h>
using namespace std;
pair<int, int> Data[15];
int people, ans_max;
int main(void)
{
int i;
for(i=1;i<=10;i++) {
scanf("%d %d", &Data[i].first, &Data[i].second);
people -= Data[i].first;
people += Data[i].second;
ans_max = max(ans_max, people);
}
printf("%d\n", ans_max);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |