結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
|
提出日時 | 2018-08-19 08:21:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,896 KB |
最終ジャッジ日時 | 2024-11-08 19:38:43 |
合計ジャッジ時間 | 9,568 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 12 |
ソースコード
n = int(input()) a = list(map(int, input().split())) s = [0] for i in range(n): if a[i] not in s: s.append(a[i]) for j in range(len(s)): if a[i] ^ s[j] not in s: s.append(a[i] ^ s[j]) print(len(s))