# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
515253 | | Joo | RMQ (NOI17_rmq) | C++17 | | 0 ms | 292 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |