結果

問題 No.1186 長方形の敷き詰め
ユーザー KeroruKeroru
提出日時 2020-08-22 16:41:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 175 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 82,568 KB
実行使用メモリ 231,984 KB
最終ジャッジ日時 2024-04-23 10:40:49
合計ジャッジ時間 4,599 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,492 KB
testcase_01 AC 39 ms
52,624 KB
testcase_02 AC 136 ms
214,728 KB
testcase_03 AC 40 ms
54,240 KB
testcase_04 AC 39 ms
52,580 KB
testcase_05 AC 39 ms
53,164 KB
testcase_06 AC 41 ms
52,628 KB
testcase_07 AC 37 ms
53,008 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 41 ms
59,404 KB
testcase_12 AC 45 ms
60,604 KB
testcase_13 AC 40 ms
60,096 KB
testcase_14 AC 42 ms
60,156 KB
testcase_15 AC 41 ms
59,212 KB
testcase_16 AC 42 ms
58,832 KB
testcase_17 AC 77 ms
107,240 KB
testcase_18 AC 99 ms
156,320 KB
testcase_19 AC 107 ms
170,632 KB
testcase_20 AC 113 ms
183,140 KB
testcase_21 AC 98 ms
145,944 KB
testcase_22 AC 625 ms
228,588 KB
testcase_23 AC 97 ms
145,076 KB
testcase_24 AC 112 ms
183,396 KB
testcase_25 AC 92 ms
136,608 KB
testcase_26 AC 98 ms
146,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split());M=998244353;F=[1]
for i in range(m*2):F+=F[i]*-~i%M,
C=lambda A,B:F[A]*pow(F[A-B]*F[B],M-2,M)%M
print(sum(C(m-n*k+k,k)for k in range((m//n)+1))%M)
0