結果

問題 No.1836 Max Matrix
ユーザー AEnAEn
提出日時 2022-12-26 12:54:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 483 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 82,336 KB
実行使用メモリ 62,976 KB
最終ジャッジ日時 2024-04-30 23:08:18
合計ジャッジ時間 4,672 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,740 KB
testcase_01 AC 39 ms
52,968 KB
testcase_02 AC 340 ms
61,904 KB
testcase_03 AC 364 ms
62,976 KB
testcase_04 AC 210 ms
61,400 KB
testcase_05 AC 306 ms
61,752 KB
testcase_06 AC 241 ms
62,048 KB
testcase_07 AC 360 ms
62,460 KB
testcase_08 AC 138 ms
61,712 KB
testcase_09 AC 364 ms
62,588 KB
testcase_10 AC 243 ms
60,816 KB
testcase_11 AC 38 ms
53,008 KB
testcase_12 AC 483 ms
62,568 KB
testcase_13 AC 174 ms
60,428 KB
testcase_14 AC 192 ms
59,912 KB
testcase_15 AC 50 ms
59,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H, W, M = map(int, input().split())

res = 0
mod = 998244353

for i in range(M):
    res += (pow(M-i,H,mod)-pow(M-i-1,H,mod))*(pow(M-i,W,mod)-pow(M-i-1,W,mod))%mod
    res %= mod
print(res)
0