結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,352 KB
testcase_01 AC 43 ms
51,968 KB
testcase_02 AC 118 ms
135,296 KB
testcase_03 AC 41 ms
51,584 KB
testcase_04 AC 40 ms
51,712 KB
testcase_05 AC 41 ms
51,968 KB
testcase_06 AC 40 ms
52,096 KB
testcase_07 AC 41 ms
51,968 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 45 ms
58,624 KB
testcase_12 AC 49 ms
59,008 KB
testcase_13 AC 48 ms
58,240 KB
testcase_14 AC 46 ms
58,880 KB
testcase_15 AC 45 ms
58,112 KB
testcase_16 AC 47 ms
57,984 KB
testcase_17 AC 66 ms
81,920 KB
testcase_18 AC 89 ms
106,368 KB
testcase_19 AC 94 ms
112,640 KB
testcase_20 AC 99 ms
119,424 KB
testcase_21 AC 83 ms
101,120 KB
testcase_22 AC 626 ms
147,200 KB
testcase_23 AC 85 ms
100,992 KB
testcase_24 AC 100 ms
119,424 KB
testcase_25 AC 77 ms
96,896 KB
testcase_26 AC 83 ms
101,248 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