結果

問題 No.1304 あなたは基本が何か知っていますか?私は知っています.
ユーザー shotoyooshotoyoo
提出日時 2020-12-02 00:56:47
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 606 bytes
コンパイル時間 535 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 77,012 KB
最終ジャッジ日時 2023-09-03 03:50:04
合計ジャッジ時間 13,132 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
75,816 KB
testcase_01 AC 78 ms
75,996 KB
testcase_02 AC 74 ms
71,372 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 83 ms
76,200 KB
testcase_06 WA -
testcase_07 AC 87 ms
76,676 KB
testcase_08 WA -
testcase_09 AC 86 ms
76,384 KB
testcase_10 AC 81 ms
76,736 KB
testcase_11 AC 86 ms
76,736 KB
testcase_12 AC 86 ms
76,588 KB
testcase_13 AC 83 ms
76,032 KB
testcase_14 AC 86 ms
76,428 KB
testcase_15 AC 83 ms
76,588 KB
testcase_16 AC 86 ms
76,408 KB
testcase_17 WA -
testcase_18 AC 85 ms
76,728 KB
testcase_19 AC 82 ms
76,604 KB
testcase_20 AC 79 ms
76,292 KB
testcase_21 WA -
testcase_22 AC 87 ms
76,836 KB
testcase_23 AC 87 ms
76,808 KB
testcase_24 AC 85 ms
76,776 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 78 ms
75,976 KB
testcase_31 AC 86 ms
76,416 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 74 ms
71,396 KB
testcase_39 AC 72 ms
71,432 KB
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
04_evil_A_01 RE -
04_evil_A_02 RE -
04_evil_A_03 RE -
04_evil_A_04 RE -
04_evil_A_05 RE -
04_evil_A_06 RE -
04_evil_A_07 RE -
04_evil_A_08 RE -
04_evil_A_09 RE -
04_evil_A_10 RE -
05_evil_B_01 RE -
05_evil_B_02 RE -
05_evil_B_03 RE -
05_evil_B_04 RE -
05_evil_B_05 RE -
05_evil_B_06 RE -
05_evil_B_07 RE -
05_evil_B_08 RE -
05_evil_B_09 RE -
05_evil_B_10 RE -
06_evil_C_01 RE -
06_evil_C_02 RE -
06_evil_C_03 RE -
06_evil_C_04 RE -
06_evil_C_05 RE -
06_evil_C_06 RE -
06_evil_C_07 RE -
06_evil_C_08 RE -
06_evil_C_09 RE -
06_evil_C_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")

n,k,x,y = list(map(int, input().split()))
a = list(map(int, input().split()))
nn = n//2
from itertools import combinations_with_replacement as cr, product
d = [0]*(1025)
for vs in product(*[a for _ in range(nn)]):
    vv = 0
    for v in vs:
        vv ^= v
    d[vv] += 1
ans = 0
M = 998244353
for i in range(1025):
    if d[i]==0:
        continue
    for j in range(1025):
        if x<=(i^j)<=y:
            ans += d[i]*d[j]
            ans %= M
print(ans//nn)
0