結果

問題 No.1836 Max Matrix
ユーザー pluto77pluto77
提出日時 2022-02-18 16:11:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 495 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 86,884 KB
実行使用メモリ 76,236 KB
最終ジャッジ日時 2023-09-11 18:12:40
合計ジャッジ時間 5,353 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,376 KB
testcase_01 AC 71 ms
71,352 KB
testcase_02 AC 357 ms
76,032 KB
testcase_03 AC 379 ms
76,116 KB
testcase_04 AC 236 ms
76,104 KB
testcase_05 AC 325 ms
75,988 KB
testcase_06 AC 267 ms
76,136 KB
testcase_07 AC 378 ms
76,076 KB
testcase_08 AC 170 ms
75,848 KB
testcase_09 AC 385 ms
76,236 KB
testcase_10 AC 268 ms
76,024 KB
testcase_11 AC 72 ms
71,132 KB
testcase_12 AC 495 ms
76,128 KB
testcase_13 AC 203 ms
75,872 KB
testcase_14 AC 221 ms
76,172 KB
testcase_15 AC 85 ms
76,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1836
mod=998244353
h,w,m=map(int,input().split())
res=0
for i in range(m):
 res+=(pow(i+1,h,mod)-pow(i,h,mod))*(pow(i+1,w,mod)-pow(i,w,mod))
 res%=mod
print(res)
0