結果
| 問題 | No.1674 Introduction to XOR |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-10 22:10:17 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 1,000 ms |
| + 637µs | |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 96,360 KB |
| 実行使用メモリ | 82,944 KB |
| 最終ジャッジ日時 | 2026-07-25 20:20:20 |
| 合計ジャッジ時間 | 3,159 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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