結果
| 問題 |
No.987 N×Mマス計算(基本)
|
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-02-14 21:28:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 81,748 KB |
| 実行使用メモリ | 59,776 KB |
| 最終ジャッジ日時 | 2024-10-06 10:38:20 |
| 合計ジャッジ時間 | 2,258 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
n, m = map(int, input().split())
l = list(map(str, input().split()))
b = [int(l[i]) for i in range(1, m+1)]
op = l[0]
#print(op)
#rint(b)
a = [0]*n
if op == '+':
for i in range(n):
a = int(input())
temp = [str(a+b_) for b_ in b]
print(' '.join(temp))
else:
for i in range(n):
a = int(input())
temp = [str(a*b_) for b_ in b]
print(' '.join(temp))
brthyyjp