# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
5044 | jspark19990205 | 지능형 기차 2 (KOI11_train2) | C++98 | 0 ms | 1676 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 out,in,cur,f;
int main()
{
int i;
f=-1;
for(i=0;i<=9;i++)
{
scanf("%d %d",&out,&in);
cur=cur-out+in;
f=max(f,cur);
}
printf("%d",f);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |