Submission #5044

#TimeUsernameProblemLanguageResultExecution timeMemory
5044jspark19990205지능형 기차 2 (KOI11_train2)C++98
16 / 16
0 ms1676 KiB
#include<cstdio> #include<iostream> using namespace std; int out,in,cur,f; int main() { int i; f=-1; for(i=0;i<=9;i++) { scanf("%d %d",&out,&in); cur=cur-out+in; f=max(f,cur); } printf("%d",f); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...