# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
3151 | chan492811 | 지능형 기차 2 (KOI11_train2) | C++98 | 0 ms | 1672 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 <cstdio>
#include <iostream>
using namespace std;
int q,w,a,m;
int main()
{
int i;
m=-9;
for(i=1;i<=10;i++)
{
scanf("%d %d",&q,&w);
a=a-q+w;
m=max(m,a);
}
printf("%d",m);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |