結果

問題 No.1689 Set Cards
ユーザー とりゐとりゐ
提出日時 2021-09-25 05:18:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 82,004 KB
最終ジャッジ日時 2023-09-18 22:48:59
合計ジャッジ時間 5,614 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
75,960 KB
testcase_01 AC 77 ms
75,700 KB
testcase_02 AC 79 ms
75,888 KB
testcase_03 AC 79 ms
76,168 KB
testcase_04 AC 82 ms
76,260 KB
testcase_05 AC 80 ms
75,836 KB
testcase_06 AC 79 ms
75,912 KB
testcase_07 AC 79 ms
75,836 KB
testcase_08 AC 76 ms
75,724 KB
testcase_09 AC 77 ms
75,660 KB
testcase_10 AC 78 ms
75,840 KB
testcase_11 AC 252 ms
78,036 KB
testcase_12 AC 249 ms
78,268 KB
testcase_13 AC 258 ms
78,284 KB
testcase_14 AC 243 ms
77,768 KB
testcase_15 AC 109 ms
76,756 KB
testcase_16 AC 192 ms
77,804 KB
testcase_17 AC 93 ms
76,132 KB
testcase_18 AC 254 ms
78,056 KB
testcase_19 AC 215 ms
78,764 KB
testcase_20 AC 215 ms
78,716 KB
testcase_21 AC 219 ms
77,636 KB
testcase_22 AC 238 ms
77,420 KB
testcase_23 AC 231 ms
77,512 KB
testcase_24 AC 325 ms
82,004 KB
testcase_25 AC 264 ms
78,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t=1<<14
d=[0]*t
d[-1]=1
for _ in '_'*int(input()):
 c=sum([1<<i for i in list(map(int,input().split()))[1:]])
 for k in range(t):d[c&k]+=d[k]
print(d[0]%998244353)
0