結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 33 ms
53,368 KB
testcase_02 AC 88 ms
137,760 KB
testcase_03 WA -
testcase_04 AC 34 ms
52,472 KB
testcase_05 WA -
testcase_06 AC 34 ms
52,592 KB
testcase_07 WA -
testcase_08 AC 34 ms
53,448 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 40 ms
58,304 KB
testcase_12 AC 39 ms
59,640 KB
testcase_13 AC 38 ms
59,288 KB
testcase_14 AC 37 ms
59,880 KB
testcase_15 AC 36 ms
58,176 KB
testcase_16 AC 38 ms
58,864 KB
testcase_17 AC 57 ms
82,816 KB
testcase_18 AC 72 ms
108,044 KB
testcase_19 AC 77 ms
114,676 KB
testcase_20 AC 79 ms
119,896 KB
testcase_21 AC 73 ms
103,136 KB
testcase_22 WA -
testcase_23 AC 70 ms
101,632 KB
testcase_24 AC 78 ms
120,360 KB
testcase_25 AC 67 ms
97,272 KB
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split());M=998244353;F=[1]
for i in range(m):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)//n))%M)
0