結果

問題 No.1836 Max Matrix
ユーザー ああいいああいい
提出日時 2022-02-11 23:11:49
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 499 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 579 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 76,288 KB
最終ジャッジ日時 2023-09-10 05:59:00
合計ジャッジ時間 5,769 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,216 KB
testcase_01 AC 74 ms
71,460 KB
testcase_02 AC 364 ms
76,108 KB
testcase_03 AC 383 ms
76,136 KB
testcase_04 AC 237 ms
76,276 KB
testcase_05 AC 329 ms
76,200 KB
testcase_06 AC 265 ms
76,096 KB
testcase_07 AC 377 ms
76,120 KB
testcase_08 AC 173 ms
76,200 KB
testcase_09 AC 385 ms
76,288 KB
testcase_10 AC 270 ms
76,108 KB
testcase_11 AC 74 ms
71,324 KB
testcase_12 AC 499 ms
76,260 KB
testcase_13 AC 204 ms
76,064 KB
testcase_14 AC 224 ms
76,052 KB
testcase_15 AC 87 ms
75,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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