Submission #515253

#TimeUsernameProblemLanguageResultExecution timeMemory
515253JooRMQ (NOI17_rmq)C++17
0 / 100
0 ms292 KiB
#include <bits/stdc++.h> using namespace std; int main(void){ int n, Q; cin >> n >> Q; int ans = 0; for(int i = 1; i <= Q; i++){ int l, r, v; cin >> l >> r >> v; ans = max(ans, v); } for(int i = 1; i <= n; i++) cout << ans << " "; cout << "\n"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...