結果
問題 | No.1304 あなたは基本が何か知っていますか?私は知っています. |
ユーザー | shotoyoo |
提出日時 | 2020-12-02 00:56:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 606 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 66,788 KB |
最終ジャッジ日時 | 2024-06-12 13:38:18 |
合計ジャッジ時間 | 7,699 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
58,260 KB |
testcase_01 | AC | 39 ms
58,888 KB |
testcase_02 | AC | 36 ms
52,336 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 47 ms
61,872 KB |
testcase_06 | WA | - |
testcase_07 | AC | 53 ms
63,424 KB |
testcase_08 | WA | - |
testcase_09 | AC | 49 ms
62,808 KB |
testcase_10 | AC | 45 ms
60,884 KB |
testcase_11 | AC | 50 ms
62,128 KB |
testcase_12 | AC | 50 ms
61,404 KB |
testcase_13 | AC | 47 ms
62,484 KB |
testcase_14 | AC | 50 ms
63,252 KB |
testcase_15 | AC | 47 ms
62,660 KB |
testcase_16 | AC | 50 ms
61,752 KB |
testcase_17 | WA | - |
testcase_18 | AC | 48 ms
61,388 KB |
testcase_19 | AC | 45 ms
61,336 KB |
testcase_20 | AC | 42 ms
59,340 KB |
testcase_21 | WA | - |
testcase_22 | AC | 54 ms
64,084 KB |
testcase_23 | AC | 50 ms
61,940 KB |
testcase_24 | AC | 49 ms
61,952 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 40 ms
58,560 KB |
testcase_31 | AC | 45 ms
62,216 KB |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | AC | 35 ms
52,328 KB |
testcase_39 | AC | 35 ms
51,948 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 | - |
ソースコード
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)