結果

問題 No.1836 Max Matrix
ユーザー kozykozy
提出日時 2022-02-11 21:35:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 167 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 7,912 KB
最終ジャッジ日時 2023-09-10 01:12:45
合計ジャッジ時間 16,212 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,756 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 1,484 ms
7,852 KB
testcase_03 AC 1,566 ms
7,880 KB
testcase_04 AC 859 ms
7,796 KB
testcase_05 AC 1,318 ms
7,808 KB
testcase_06 AC 975 ms
7,912 KB
testcase_07 AC 1,538 ms
7,772 KB
testcase_08 AC 473 ms
7,908 KB
testcase_09 AC 1,595 ms
7,844 KB
testcase_10 AC 1,014 ms
7,800 KB
testcase_11 AC 15 ms
7,852 KB
testcase_12 TLE -
testcase_13 AC 769 ms
7,848 KB
testcase_14 AC 850 ms
7,792 KB
testcase_15 AC 134 ms
7,780 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