結果

問題 No.1836 Max Matrix
ユーザー AEnAEn
提出日時 2022-12-26 12:54:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 486 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 858 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 76,384 KB
最終ジャッジ日時 2023-08-13 05:01:18
合計ジャッジ時間 6,306 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,500 KB
testcase_01 AC 71 ms
71,128 KB
testcase_02 AC 359 ms
76,240 KB
testcase_03 AC 376 ms
76,376 KB
testcase_04 AC 237 ms
76,312 KB
testcase_05 AC 327 ms
76,136 KB
testcase_06 AC 267 ms
76,252 KB
testcase_07 AC 373 ms
76,180 KB
testcase_08 AC 165 ms
76,144 KB
testcase_09 AC 381 ms
76,356 KB
testcase_10 AC 267 ms
76,164 KB
testcase_11 AC 72 ms
71,232 KB
testcase_12 AC 486 ms
76,384 KB
testcase_13 AC 201 ms
76,152 KB
testcase_14 AC 216 ms
76,252 KB
testcase_15 AC 81 ms
76,208 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