結果

問題 No.987 N×Mマス計算(基本)
ユーザー superzugan
提出日時 2020-03-09 02:49:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 323 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-07 20:27:44
合計ジャッジ時間 1,551 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 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