結果

問題 No.3249 AND
ユーザー tkykwtnb
提出日時 2025-08-29 21:28:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 124 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 103,476 KB
最終ジャッジ日時 2025-08-29 23:57:26
合計ジャッジ時間 2,906 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 17 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
B=list(map(int,input().split()))
x=0
for i,b in enumerate(B,1):
    if b>i:exit(print(-1))
    x|=b
print(x)
0