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