Submission #7731

#TimeUsernameProblemLanguageResultExecution timeMemory
7731gs14004지능형 기차 2 (KOI11_train2)C++98
16 / 16
0 ms1088 KiB
#include <stdio.h> int main(){ int i,j,k; int now=0,max=0; for(i=0;i<10;i++){ scanf("%d %d",&j,&k); now+=(k-j); if(max<now) max = now; } printf("%d",max); }
#Verdict Execution timeMemoryGrader output
Fetching results...