結果
| 問題 | No.988 N×Mマス計算(総和) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-08 10:39:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 497 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 24,440 KB |
| 最終ジャッジ日時 | 2026-04-08 10:39:59 |
| 合計ジャッジ時間 | 5,759 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 TLE * 1 -- * 10 |
ソースコード
n, m, k = map(int, input().split())
op, *element = input().split()
res = 0
for _ in range(n):
num = int(input())
if op == '+':
res += sum([num + int(ele) for ele in element])
elif op == '*':
res += sum([num * int(ele) for ele in element])
print(res%k)