Submission #966007

#TimeUsernameProblemLanguageResultExecution timeMemory
966007JungPSLasers (NOI19_lasers)C++14
24 / 100
62 ms6320 KiB
#include<iostream> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int l,r,x,tmp; cin >> l >> r; int ans=0; while(r--){ cin >> x >> tmp; ans=max(max(0,2*tmp-l),ans); } cout << ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...