結果
| 問題 | No.1674 Introduction to XOR |
| コンテスト | |
| ユーザー |
mrng
|
| 提出日時 | 2021-12-16 23:37:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 1,000 ms |
| コード長 | 145 bytes |
| 記録 | |
| コンパイル時間 | 336 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-04 08:42:49 |
| 合計ジャッジ時間 | 2,302 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
n = int(input()) a = list(map(int,input().split())) b = 0 for i in a: b |= i c = 0 while b>0: if b&1==0: break c += 1 b >>= 1 print(pow(2,c))
mrng