Submission #16245

#TimeUsernameProblemLanguageResultExecution timeMemory
16245eaststar지능형 기차 2 (KOI11_train2)C++14
16 / 16
0 ms1084 KiB
#include <stdio.h> int main(){ int i,x,y,s=0,mx=0; for(i=1;i<11;++i){ scanf("%d%d",&x,&y); s+=y-x; if(mx<s)mx=s; } printf("%d",mx); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...