結果
| 問題 |
No.987 N×Mマス計算(基本)
|
| ユーザー |
ohara_n
|
| 提出日時 | 2020-03-24 22:39:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 345 bytes |
| コンパイル時間 | 212 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-01-01 18:47:28 |
| 合計ジャッジ時間 | 1,845 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
n,m = map(int,input().split())
List = list(input().split())
operater = List[0]
B = [int(i) for i in List[1:]]
if operater == '*':
for _ in range(n):
a = int(input())
result = [a*b for b in B]
print(*result)
else:
for _ in range(n):
a = int(input())
result = [a+b for b in B]
print(*result)
ohara_n