結果

問題 No.987 N×Mマス計算(基本)
ユーザー pluto77
提出日時 2020-02-24 09:06:06
言語 Python2
(2.7.18)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 706 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-10-11 21:10:22
合計ジャッジ時間 1,961 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki987
n,m=map(int,raw_input().split())
op=raw_input().split()
a=[]
for i in range(n):
 a.append(int(raw_input()))
for i in range(n):
 for j in range(1,len(op)):
  if op[0]=='+':
   print int(op[j])+a[i],
  else:
   print int(op[j])*a[i],
 print
0