結果
問題 |
No.3184 Make Same
|
ユーザー |
|
提出日時 | 2025-06-20 21:58:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 82,108 KB |
実行使用メモリ | 120,900 KB |
最終ジャッジ日時 | 2025-06-20 21:58:26 |
合計ジャッジ時間 | 11,348 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 WA * 3 |
ソースコード
N = int(input()) A = list(map(int, input().split())) from bisect import * l = [] now = 0 for i in reversed(range(30)): need = 1<<i now += need id = bisect_left(A,now) for j in range(id): A[j] += need A.sort() l.append((1,id,need)) #print(A) print(len(l)) for i in l: print(*i)