結果
問題 | No.988 N×Mマス計算(総和) |
ユーザー | pypypymi |
提出日時 | 2022-02-17 20:07:59 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 906 ms |
コンパイル使用メモリ | 86,796 KB |
実行使用メモリ | 178,840 KB |
最終ジャッジ日時 | 2023-09-11 17:50:35 |
合計ジャッジ時間 | 6,326 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,148 KB |
testcase_01 | AC | 72 ms
71,228 KB |
testcase_02 | AC | 125 ms
78,400 KB |
testcase_03 | AC | 97 ms
77,092 KB |
testcase_04 | AC | 74 ms
71,120 KB |
testcase_05 | AC | 129 ms
78,484 KB |
testcase_06 | AC | 133 ms
78,584 KB |
testcase_07 | AC | 141 ms
78,528 KB |
testcase_08 | AC | 90 ms
76,448 KB |
testcase_09 | AC | 78 ms
71,728 KB |
testcase_10 | TLE | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
ソースコード
n,m,k = map(int,input().split()) op_B = input().split() op = op_B[0] B = list(map(int,op_B[1:])) A = [int(input()) for i in range(n)] result = 0 for ai in A: result2 = 0 for bi in B: result2+=eval(str(ai)+op+str(bi)) result+=result2 print(result%k)