Submission #12840

#TimeUsernameProblemLanguageResultExecution timeMemory
12840yongwhan지능형 기차 2 (KOI11_train2)C++98
16 / 16
0 ms1668 KiB
#include <fstream> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstdlib> #include <cctype> #include <string> #include <cstring> #include <cstdio> #include <cmath> #include <cstdlib> #include <ctime> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int mx=0, x,y, cur=0; for (int i=0; i<10; i++) cin>>x>>y, cur+=(y-x), mx=max(mx,cur); cout << mx << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...