Submission #4604

#TimeUsernameProblemLanguageResultExecution timeMemory
4604Namnamseo지능형 기차 2 (KOI11_train2)C++98
16 / 16
0 ms1088 KiB
#include <stdio.h> int max(int x,int y) { return (x>y)?x:y; } int main(int a,char** b) { int x=0; int p,q; int ans=-1; for(a=10;a>0;a--) { scanf("%d %d",&p,&q); x+=q-p; ans=max(ans,x); } printf("%d",ans); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...