結果

問題 No.1304 あなたは基本が何か知っていますか?私は知っています.
ユーザー titiatitia
提出日時 2020-12-01 06:26:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 436 bytes
コンパイル時間 2,061 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 76,504 KB
最終ジャッジ日時 2023-09-03 03:17:53
合計ジャッジ時間 13,281 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
76,496 KB
testcase_01 AC 80 ms
76,188 KB
testcase_02 AC 71 ms
75,872 KB
testcase_03 AC 78 ms
76,024 KB
testcase_04 WA -
testcase_05 AC 86 ms
76,296 KB
testcase_06 WA -
testcase_07 AC 88 ms
76,156 KB
testcase_08 AC 78 ms
76,316 KB
testcase_09 AC 85 ms
76,180 KB
testcase_10 AC 86 ms
76,316 KB
testcase_11 AC 84 ms
76,360 KB
testcase_12 AC 84 ms
76,184 KB
testcase_13 AC 81 ms
76,312 KB
testcase_14 AC 84 ms
76,264 KB
testcase_15 AC 83 ms
76,284 KB
testcase_16 AC 84 ms
76,444 KB
testcase_17 AC 77 ms
76,288 KB
testcase_18 AC 85 ms
76,228 KB
testcase_19 AC 83 ms
76,264 KB
testcase_20 AC 77 ms
76,272 KB
testcase_21 AC 78 ms
76,312 KB
testcase_22 AC 85 ms
76,156 KB
testcase_23 AC 89 ms
76,192 KB
testcase_24 AC 92 ms
76,228 KB
testcase_25 AC 84 ms
76,308 KB
testcase_26 AC 74 ms
76,280 KB
testcase_27 AC 76 ms
76,392 KB
testcase_28 AC 74 ms
76,396 KB
testcase_29 AC 77 ms
76,036 KB
testcase_30 AC 82 ms
76,220 KB
testcase_31 AC 78 ms
76,316 KB
testcase_32 AC 75 ms
76,276 KB
testcase_33 AC 77 ms
76,504 KB
testcase_34 AC 77 ms
76,280 KB
testcase_35 AC 75 ms
76,156 KB
testcase_36 AC 75 ms
76,372 KB
testcase_37 AC 78 ms
76,284 KB
testcase_38 AC 72 ms
76,148 KB
testcase_39 AC 71 ms
76,280 KB
testcase_40 AC 75 ms
76,184 KB
testcase_41 AC 79 ms
76,220 KB
testcase_42 AC 77 ms
76,192 KB
testcase_43 AC 73 ms
76,308 KB
testcase_44 AC 75 ms
76,216 KB
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 #

N,K,X,Y=map(int,input().split())
A=list(map(int,input().split()))

mod=998244353
S=set(A)
LEN=len(S)

DP=[[0]*1024 for i in range(N+1)]
DP[0][0]=1

for i in range(1,N+1):
    DP[2][0]=0
    for j in range(1024):
        for s in S:
            DP[i][j^s]+=DP[i-1][j]
            DP[i][j^s]%=mod

        DP[i][j]-=DP[i-2][j]*LEN
        DP[i][j]+=DP[i-2][j]

ANS=0
for i in range(X,min(Y+1,1024)):
    ANS=(ANS+DP[N][i])%mod

print(ANS)
0