結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,500 KB
testcase_01 AC 34 ms
52,556 KB
testcase_02 AC 85 ms
136,324 KB
testcase_03 AC 34 ms
52,540 KB
testcase_04 AC 33 ms
53,772 KB
testcase_05 AC 32 ms
53,084 KB
testcase_06 AC 32 ms
53,072 KB
testcase_07 AC 32 ms
53,072 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 36 ms
59,116 KB
testcase_12 AC 35 ms
59,644 KB
testcase_13 AC 35 ms
58,500 KB
testcase_14 AC 39 ms
59,128 KB
testcase_15 AC 37 ms
58,924 KB
testcase_16 AC 35 ms
59,400 KB
testcase_17 AC 55 ms
82,312 KB
testcase_18 AC 68 ms
107,440 KB
testcase_19 AC 74 ms
113,284 KB
testcase_20 AC 76 ms
120,052 KB
testcase_21 AC 67 ms
102,564 KB
testcase_22 AC 538 ms
148,528 KB
testcase_23 AC 67 ms
102,500 KB
testcase_24 AC 78 ms
120,480 KB
testcase_25 AC 65 ms
97,024 KB
testcase_26 AC 73 ms
102,916 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