結果

問題 No.1836 Max Matrix
ユーザー H3PO4H3PO4
提出日時 2022-02-11 21:38:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 489 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 86,588 KB
実行使用メモリ 75,900 KB
最終ジャッジ日時 2023-09-10 01:21:40
合計ジャッジ時間 6,018 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,084 KB
testcase_01 AC 70 ms
71,016 KB
testcase_02 AC 355 ms
75,792 KB
testcase_03 AC 377 ms
75,748 KB
testcase_04 AC 234 ms
75,844 KB
testcase_05 AC 325 ms
75,764 KB
testcase_06 AC 264 ms
75,840 KB
testcase_07 AC 368 ms
75,900 KB
testcase_08 AC 162 ms
75,736 KB
testcase_09 AC 375 ms
75,704 KB
testcase_10 AC 265 ms
75,744 KB
testcase_11 AC 71 ms
71,096 KB
testcase_12 AC 489 ms
75,672 KB
testcase_13 AC 197 ms
75,856 KB
testcase_14 AC 217 ms
75,852 KB
testcase_15 AC 79 ms
75,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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