結果
問題 | No.1674 Introduction to XOR |
ユーザー | H20 |
提出日時 | 2021-09-10 21:39:38 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 1,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 59,520 KB |
最終ジャッジ日時 | 2024-06-11 22:54:40 |
合計ジャッジ時間 | 2,008 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)