結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | yassu0320 |
提出日時 | 2021-07-11 12:43:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 2,827 ms / 5,000 ms |
コード長 | 883 bytes |
コンパイル時間 | 272 ms |
コンパイル使用メモリ | 87,012 KB |
実行使用メモリ | 199,360 KB |
最終ジャッジ日時 | 2023-09-14 20:09:15 |
合計ジャッジ時間 | 17,008 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 166 ms
80,172 KB |
testcase_01 | AC | 161 ms
80,104 KB |
testcase_02 | AC | 158 ms
80,968 KB |
testcase_03 | AC | 157 ms
80,460 KB |
testcase_04 | AC | 162 ms
80,324 KB |
testcase_05 | AC | 164 ms
81,952 KB |
testcase_06 | AC | 161 ms
80,168 KB |
testcase_07 | AC | 2,827 ms
199,360 KB |
testcase_08 | AC | 1,658 ms
142,808 KB |
testcase_09 | AC | 1,165 ms
139,364 KB |
testcase_10 | AC | 1,383 ms
140,944 KB |
testcase_11 | AC | 1,738 ms
143,356 KB |
testcase_12 | AC | 163 ms
84,872 KB |
testcase_13 | AC | 154 ms
80,088 KB |
testcase_14 | AC | 163 ms
83,404 KB |
testcase_15 | AC | 1,783 ms
143,784 KB |
testcase_16 | AC | 159 ms
80,768 KB |
testcase_17 | AC | 547 ms
135,436 KB |
testcase_18 | AC | 2,277 ms
197,076 KB |
testcase_19 | AC | 381 ms
132,852 KB |
ソースコード
#!/usr/bin/env python3 from sys import setrecursionlimit, stdin from typing import Dict, Iterable, Set INF: int = 2**62 MOD: int = 10**9 + 7 setrecursionlimit(10**6) def inputs(type_=int): ins = input().split(' ') ins = [x for x in ins if x != ''] if isinstance(type_, Iterable): return [t(x) for t, x in zip(type_, ins)] else: return list(map(type_, ins)) def input_(type_=int): a, = inputs(type_) return a inputi = input_ def inputstr(): return input_(str) # b/aの切り上げ def ceil(b, a): return (a + b - 1) // a def answer(res) -> None: print(res) exit() def compute(): return def main(): n = inputi() xs = inputs() s = set([0]) for i in range(n): for x in s.copy(): s.add(x ^ xs[i]) # print(s) print(len(s)) if __name__ == '__main__': main()