結果
問題 |
No.3251 kthmex
|
ユーザー |
|
提出日時 | 2025-09-02 11:18:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 513 bytes |
コンパイル時間 | 517 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 33,608 KB |
最終ジャッジ日時 | 2025-09-02 11:18:50 |
合計ジャッジ時間 | 8,139 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 TLE * 1 -- * 27 |
ソースコード
s = input() n, m = map(int, s.split(' ')) s = input() a = list(map(int, s.split(' '))) for _ in range(m): d = list(map(int, input().split(' '))) t, l, r = d[0], d[1], d[2] if t == 1: x, y = d[3], d[4] a = a[:l] + [y if i == x else i for i in a[l:r+1]] + a[r:] else: k = d[3] b = sorted(set(a)) s = 0 for c in b: if k + s < c: print(k + s) break s += 1 else: print(k + s)