結果

問題 No.1304 あなたは基本が何か知っていますか?私は知っています.
ユーザー tamatotamato
提出日時 2020-12-01 09:01:32
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 654 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 87,652 KB
実行使用メモリ 849,384 KB
最終ジャッジ日時 2023-09-03 03:18:31
合計ジャッジ時間 5,596 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,676 KB
testcase_01 AC 92 ms
77,048 KB
testcase_02 RE -
testcase_03 AC 84 ms
72,148 KB
testcase_04 AC 367 ms
189,740 KB
testcase_05 AC 159 ms
99,320 KB
testcase_06 AC 89 ms
72,200 KB
testcase_07 AC 290 ms
158,172 KB
testcase_08 MLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
04_evil_A_01 -- -
04_evil_A_02 -- -
04_evil_A_03 -- -
04_evil_A_04 -- -
04_evil_A_05 -- -
04_evil_A_06 -- -
04_evil_A_07 -- -
04_evil_A_08 -- -
04_evil_A_09 -- -
04_evil_A_10 -- -
05_evil_B_01 -- -
05_evil_B_02 -- -
05_evil_B_03 -- -
05_evil_B_04 -- -
05_evil_B_05 -- -
05_evil_B_06 -- -
05_evil_B_07 -- -
05_evil_B_08 -- -
05_evil_B_09 -- -
05_evil_B_10 -- -
06_evil_C_01 -- -
06_evil_C_02 -- -
06_evil_C_03 -- -
06_evil_C_04 -- -
06_evil_C_05 -- -
06_evil_C_06 -- -
06_evil_C_07 -- -
06_evil_C_08 -- -
06_evil_C_09 -- -
06_evil_C_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    from collections import deque
    input = sys.stdin.readline

    N, K, x, y = map(int, input().split())
    A = list(map(int, input().split()))
    A = list(set(A))
    K = len(A)

    que = deque()
    for i in range(K):
        que.append([A[i]])
    while len(que[0]) < N:
        B = que.popleft()
        for a in A:
            if a != B[-1]:
                que.append(B[:] + [a])
    ans = 0
    while que:
        B = que.pop()
        z = 0
        for b in B:
            z ^= b
        if x <= z <= y:
            ans += 1
    print(ans)


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