結果

問題 No.1836 Max Matrix
ユーザー kozykozy
提出日時 2022-02-11 21:39:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 491 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 540 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 76,444 KB
最終ジャッジ日時 2023-09-10 01:24:44
合計ジャッジ時間 5,611 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,436 KB
testcase_01 AC 74 ms
71,340 KB
testcase_02 AC 363 ms
76,236 KB
testcase_03 AC 381 ms
76,340 KB
testcase_04 AC 238 ms
76,268 KB
testcase_05 AC 329 ms
76,428 KB
testcase_06 AC 265 ms
76,444 KB
testcase_07 AC 378 ms
76,284 KB
testcase_08 AC 169 ms
76,380 KB
testcase_09 AC 384 ms
76,316 KB
testcase_10 AC 270 ms
76,236 KB
testcase_11 AC 72 ms
71,432 KB
testcase_12 AC 491 ms
76,072 KB
testcase_13 AC 203 ms
76,344 KB
testcase_14 AC 222 ms
76,212 KB
testcase_15 AC 85 ms
75,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W,M=map(int,input().split())
ans=0
mod=998244353
for i in range(M,0,-1):
  ans+=(pow(i,H,mod)-pow(i-1,H,mod))*(pow(i,W,mod)-pow(i-1,W,mod))%mod
  ans%=mod
print(ans)
0