# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
14593 | ioojh6654 | 지능형 기차 2 (KOI11_train2) | C++98 | 0 ms | 1084 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 human=0, compare=0 ,a, b, i;
for(i=1; i<=10; i++)
{
scanf("%d%d", &a, &b);
human=human-a;
human=human+b;
if(compare>=human) compare=compare;
else if(compare<human) compare=human;
}
printf("%d", compare);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |