結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 AC 36 ms
52,684 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 WA -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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