結果

問題 No.1186 長方形の敷き詰め
ユーザー KeroruKeroru
提出日時 2020-08-22 16:32:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,320 KB
実行使用メモリ 151,756 KB
最終ジャッジ日時 2024-04-23 10:35:52
合計ジャッジ時間 4,402 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,468 KB
testcase_01 AC 43 ms
52,472 KB
testcase_02 WA -
testcase_03 AC 38 ms
51,940 KB
testcase_04 AC 38 ms
53,848 KB
testcase_05 AC 38 ms
53,676 KB
testcase_06 WA -
testcase_07 AC 38 ms
53,616 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 41 ms
58,464 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 595 ms
147,496 KB
testcase_23 AC 76 ms
102,460 KB
testcase_24 AC 87 ms
120,968 KB
testcase_25 AC 72 ms
98,420 KB
testcase_26 AC 74 ms
102,168 KB
権限があれば一括ダウンロードができます

ソースコード

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(1+m//n))%M,0][m<n])
0