結果
問題 | No.1674 Introduction to XOR |
ユーザー |
|
提出日時 | 2021-09-10 22:10:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 81,916 KB |
実行使用メモリ | 58,244 KB |
最終ジャッジ日時 | 2024-06-12 00:27:50 |
合計ジャッジ時間 | 1,963 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
N=int(input()) A=list(map(int,input().split())) ans=1 while 1: ok=1 for a in A: if (a+ans)!=(a^ans): ok=0 break if ok: print(ans) exit() ans<<=1