結果
| 問題 | 
                            No.1674 Introduction to XOR
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-09-10 22:02:02 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 198 bytes | 
| コンパイル時間 | 310 ms | 
| コンパイル使用メモリ | 82,268 KB | 
| 実行使用メモリ | 54,244 KB | 
| 最終ジャッジ日時 | 2024-06-12 00:05:55 | 
| 合計ジャッジ時間 | 2,171 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 3 WA * 18 | 
ソースコード
N=int(input())
A=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