結果
問題 |
No.1675 Strange Minimum Query
|
ユーザー |
|
提出日時 | 2021-09-11 18:58:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 102,016 KB |
最終ジャッジ日時 | 2024-06-23 03:20:54 |
合計ジャッジ時間 | 5,108 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | TLE * 1 -- * 33 |
ソースコード
n,q = map(int,input().split()) lr = [[int(i)-1 for i in input().split()] for j in range(q)] lr.sort(key=lambda x:x[2], reverse=True) li = [10**9]*n s = [i for i in range(n)] s = set(s) #print(s) for i in range(q): l,r,b = lr[i] for j in range(r-l+1): if l+j in s: s.remove(l+j) li[l+j] = b+1 print(*li)