Submission #1842

#TimeUsernameProblemLanguageResultExecution timeMemory
1842alephnull지능형 기차 2 (KOI11_train2)C++98
16 / 16
0 ms884 KiB
#include <cstdio> int main(){ int ans=0; int num=0; for(int i=0;i<10;i++){ int a,b; scanf("%d %d ",&a,&b); num+=b-a; if(ans<num)ans=num; } printf("%d",ans); }
#Verdict Execution timeMemoryGrader output
Fetching results...