結果
| 問題 |
No.3184 Make Same
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-20 22:11:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 165 ms / 2,000 ms |
| コード長 | 346 bytes |
| コンパイル時間 | 891 ms |
| コンパイル使用メモリ | 82,476 KB |
| 実行使用メモリ | 120,912 KB |
| 最終ジャッジ日時 | 2025-06-20 22:11:34 |
| 合計ジャッジ時間 | 11,098 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
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)
if id == 0:
continue
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)