結果

問題 No.1836 Max Matrix
ユーザー rlangevinrlangevin
提出日時 2023-05-14 12:37:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 500 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 1,038 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 76,428 KB
最終ジャッジ日時 2023-08-20 02:31:37
合計ジャッジ時間 6,544 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,388 KB
testcase_01 AC 70 ms
71,292 KB
testcase_02 AC 361 ms
76,396 KB
testcase_03 AC 382 ms
76,360 KB
testcase_04 AC 239 ms
76,248 KB
testcase_05 AC 328 ms
76,240 KB
testcase_06 AC 270 ms
76,236 KB
testcase_07 AC 381 ms
76,400 KB
testcase_08 AC 174 ms
76,048 KB
testcase_09 AC 383 ms
76,232 KB
testcase_10 AC 270 ms
76,228 KB
testcase_11 AC 72 ms
71,124 KB
testcase_12 AC 500 ms
76,348 KB
testcase_13 AC 204 ms
76,324 KB
testcase_14 AC 222 ms
76,228 KB
testcase_15 AC 87 ms
76,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353
def f(k, n):
    return (pow(M - k, n, mod) - pow(M - k - 1, n, mod))%mod

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