結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー |
|
提出日時 | 2018-08-19 08:21:59 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,896 KB |
最終ジャッジ日時 | 2024-11-08 19:38:43 |
合計ジャッジ時間 | 9,568 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
10,752 KB |
testcase_01 | AC | 28 ms
10,880 KB |
testcase_02 | AC | 540 ms
11,008 KB |
testcase_03 | AC | 62 ms
10,752 KB |
testcase_04 | AC | 28 ms
10,752 KB |
testcase_05 | AC | 2,028 ms
11,264 KB |
testcase_06 | AC | 28 ms
10,752 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
ソースコード
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))