結果
| 問題 | No.1674 Introduction to XOR |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-09-10 21:39:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 1,000 ms |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 85,784 KB |
| 実行使用メモリ | 61,056 KB |
| 最終ジャッジ日時 | 2026-03-05 04:09:53 |
| 合計ジャッジ時間 | 2,056 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
B = []
for a in A:
B.append(format(a, 'b')[::-1])
i = 0
while True:
all0 = True
for b in B:
if len(b)>i and b[i]=='1':
all0=False
if all0:
break
i+=1
print(2**i)
H20