結果
| 問題 | No.988 N×Mマス計算(総和) |
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2020-02-16 15:03:25 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 25,468 KB |
| 最終ジャッジ日時 | 2026-03-27 18:49:15 |
| 合計ジャッジ時間 | 5,412 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 TLE * 1 -- * 10 |
ソースコード
N,M,K=map(int,input().split())
op,*B=input().split()
sm=0
for _ in range(N):
n=int(input())
if op=='+': b=[n+int(m) for m in B]
else: b=[n*int(m) for m in B]
sm+=sum(b)
print(sm%K)
_matumo_