結果

問題 No.3184 Make Same
ユーザー miztom
提出日時 2025-06-20 21:31:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 82,464 KB
実行使用メモリ 121,416 KB
最終ジャッジ日時 2025-06-20 21:31:12
合計ジャッジ時間 9,430 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=[*map(int,input().split())]
for i in range(30)[::-1]:
    l=1;r=0
    if a[0]>>i&1:continue
    while r<n and a[r]&1<<i<1:a[r]|=1<<i;r+=1
    print(l,r,1<<i);a.sort()
0