結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
76,064 KB
testcase_01 AC 76 ms
75,664 KB
testcase_02 AC 79 ms
75,776 KB
testcase_03 AC 79 ms
75,828 KB
testcase_04 AC 78 ms
75,812 KB
testcase_05 AC 77 ms
75,884 KB
testcase_06 AC 78 ms
76,068 KB
testcase_07 AC 76 ms
75,752 KB
testcase_08 AC 76 ms
75,908 KB
testcase_09 AC 75 ms
75,792 KB
testcase_10 AC 78 ms
76,032 KB
testcase_11 AC 255 ms
78,328 KB
testcase_12 AC 248 ms
78,236 KB
testcase_13 AC 259 ms
78,452 KB
testcase_14 AC 241 ms
77,848 KB
testcase_15 AC 107 ms
76,940 KB
testcase_16 AC 189 ms
77,788 KB
testcase_17 AC 92 ms
76,148 KB
testcase_18 AC 252 ms
78,208 KB
testcase_19 AC 214 ms
79,060 KB
testcase_20 AC 215 ms
79,012 KB
testcase_21 AC 218 ms
78,024 KB
testcase_22 AC 226 ms
77,564 KB
testcase_23 AC 229 ms
77,744 KB
testcase_24 AC 324 ms
82,028 KB
testcase_25 AC 261 ms
78,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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