結果

問題 No.3184 Make Same
ユーザー sasa8uyauya
提出日時 2025-06-20 23:26:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 551 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 121,000 KB
最終ジャッジ日時 2025-06-20 23:27:11
合計ジャッジ時間 11,334 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
print(30)
for i in reversed(range(30)):
	l=0
	while l<n and (a[l]>>i)&1==0:
		l+=1
	if l==0:
		l=n
	print(1,l,1<<i)
	for j in range(l):
		a[j]+=1<<i
	a.sort()
0