結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tcltktcltk
提出日時 2021-01-16 14:22:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,298 ms / 5,000 ms
コード長 636 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 260,720 KB
最終ジャッジ日時 2023-08-18 11:19:00
合計ジャッジ時間 15,001 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 225 ms
92,276 KB
testcase_01 AC 229 ms
91,628 KB
testcase_02 AC 227 ms
92,500 KB
testcase_03 AC 223 ms
92,332 KB
testcase_04 AC 231 ms
92,040 KB
testcase_05 AC 236 ms
93,492 KB
testcase_06 AC 233 ms
92,124 KB
testcase_07 AC 2,298 ms
260,720 KB
testcase_08 AC 1,157 ms
101,500 KB
testcase_09 AC 866 ms
99,568 KB
testcase_10 AC 984 ms
100,376 KB
testcase_11 AC 1,254 ms
102,012 KB
testcase_12 AC 227 ms
96,284 KB
testcase_13 AC 224 ms
91,948 KB
testcase_14 AC 220 ms
93,288 KB
testcase_15 AC 1,256 ms
102,768 KB
testcase_16 AC 218 ms
92,536 KB
testcase_17 AC 507 ms
96,796 KB
testcase_18 AC 1,732 ms
260,672 KB
testcase_19 AC 337 ms
96,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#region Header
#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
from queue import PriorityQueue
import bisect
import heapq

def input():
    return sys.stdin.readline()[:-1]

sys.setrecursionlimit(1000000)
#endregion

# _INPUT = """# paste here...
# """
# sys.stdin = io.StringIO(_INPUT)



def main():
    N = int(input())
    A = list(map(int, input().split()))

    S = set([0])
    for i in range(N):
        for s in list(S):
            S.add(s ^ A[i])
    print(len(S))

if __name__ == '__main__':
    main()
0