Submission #4603

#TimeUsernameProblemLanguageResultExecution timeMemory
4603Namnamseo지능형 기차 2 (KOI11_train2)C++98
0 / 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; ans=max(ans,x); x-=p; } printf("%d",ans); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...