結果

問題 No.987 N×Mマス計算(基本)
ユーザー deepjuggling
提出日時 2023-06-12 11:53:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 64,512 KB
最終ジャッジ日時 2024-06-11 14:41:15
合計ジャッジ時間 2,069 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
a = list(input().split())
mp = []
aa = []
for i in range(1,m+1):
    aa.append(int(a[i]))
for i in range(n):
    x = []
    b = int(input())
    for j in range(m):
        if a[0] == "+":
            x.append(aa[j]+b)
        else:
            x.append(aa[j]*b)
    print(*x)
0