結果
問題 | No.988 N×Mマス計算(総和) |
ユーザー | 8ayac |
提出日時 | 2020-02-14 21:49:34 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 346 ms |
コンパイル使用メモリ | 86,884 KB |
実行使用メモリ | 703,148 KB |
最終ジャッジ日時 | 2023-09-20 11:45:36 |
合計ジャッジ時間 | 5,137 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | MLE | - |
testcase_01 | AC | 74 ms
71,156 KB |
testcase_02 | AC | 81 ms
76,232 KB |
testcase_03 | AC | 78 ms
76,264 KB |
testcase_04 | AC | 73 ms
70,924 KB |
testcase_05 | AC | 80 ms
76,064 KB |
testcase_06 | AC | 79 ms
76,332 KB |
testcase_07 | AC | 78 ms
76,232 KB |
testcase_08 | AC | 78 ms
75,952 KB |
testcase_09 | AC | 74 ms
71,172 KB |
testcase_10 | MLE | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
ソースコード
tmp = list(map(int, input().split())) N, M, K = tmp[0], tmp[1],tmp[2] tmp = input().split() op, B = tmp[0], tmp[1:] A = [input() for _ in range(N)] tmp = [] if op == '+': for a in A: for b in B: tmp.append(int(a)+int(b)) if op == '*': for a in A: for b in B: tmp.append(int(a)*int(b)) print(sum(tmp) % K)