# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
515253 |
2022-01-19T05:11:34 Z |
Joo |
RMQ (NOI17_rmq) |
C++17 |
|
0 ms |
292 KB |
#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 |
1 |
Incorrect |
0 ms |
292 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
292 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
292 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |