結果

問題 No.987 N×Mマス計算(基本)
ユーザー YU Hirose
提出日時 2024-06-28 22:33:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 554 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 64,512 KB
最終ジャッジ日時 2024-06-28 22:33:34
合計ジャッジ時間 2,063 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
op, *b_ = input().split()
b = list(map(int, b_))
a = [int(input()) for _ in range(n)]
for i in range(n):
    res = []
    for j in range(m):
        if op == "+":
            res.append(a[i] + b[j])
        else:
            res.append(a[i] * b[j])
    print(*res)
0