結果

問題 No.987 N×Mマス計算(基本)
ユーザー superzugan
提出日時 2020-03-09 02:52:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-11-07 20:29:07
合計ジャッジ時間 5,287 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())   
l=list(input().split()) 
k=list((input()) for _ in range(n))  
enzan=l[0]  
ll=list(map(str,l[1:])) 
lst_ans=[] 
for i in k: 
    lst_temp=[] 
    for j in ll: 
        lst_temp.append(eval(i+enzan+j)) 
        lst_ans.append(lst_temp) 
for i in lst_ans: 
    print(*list(i))
0