結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,840 KB
testcase_01 AC 40 ms
51,840 KB
testcase_02 AC 101 ms
135,296 KB
testcase_03 AC 40 ms
51,968 KB
testcase_04 AC 41 ms
51,456 KB
testcase_05 AC 39 ms
51,968 KB
testcase_06 AC 40 ms
51,840 KB
testcase_07 AC 40 ms
51,712 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 44 ms
58,112 KB
testcase_12 AC 43 ms
58,368 KB
testcase_13 AC 43 ms
58,240 KB
testcase_14 AC 45 ms
58,368 KB
testcase_15 AC 43 ms
58,112 KB
testcase_16 AC 44 ms
57,984 KB
testcase_17 AC 63 ms
82,304 KB
testcase_18 AC 81 ms
106,496 KB
testcase_19 AC 83 ms
112,512 KB
testcase_20 AC 87 ms
120,064 KB
testcase_21 AC 75 ms
101,632 KB
testcase_22 AC 599 ms
147,072 KB
testcase_23 AC 76 ms
101,504 KB
testcase_24 AC 87 ms
119,808 KB
testcase_25 AC 72 ms
96,640 KB
testcase_26 AC 77 ms
101,376 KB
権限があれば一括ダウンロードができます

ソースコード

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+1))%M)
0