結果

問題 No.987 N×Mマス計算(基本)
ユーザー syunsukesyunsuke
提出日時 2020-03-28 11:36:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 80,672 KB
最終ジャッジ日時 2023-08-30 17:32:13
合計ジャッジ時間 4,431 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,388 KB
testcase_01 AC 74 ms
71,468 KB
testcase_02 AC 134 ms
79,040 KB
testcase_03 AC 97 ms
77,748 KB
testcase_04 AC 122 ms
78,792 KB
testcase_05 AC 110 ms
78,336 KB
testcase_06 AC 129 ms
78,892 KB
testcase_07 AC 103 ms
77,872 KB
testcase_08 AC 76 ms
71,616 KB
testcase_09 AC 75 ms
71,712 KB
testcase_10 AC 78 ms
71,444 KB
testcase_11 AC 128 ms
78,856 KB
testcase_12 AC 137 ms
79,128 KB
testcase_13 AC 104 ms
77,936 KB
testcase_14 AC 75 ms
71,284 KB
testcase_15 AC 105 ms
78,132 KB
testcase_16 AC 145 ms
79,400 KB
testcase_17 AC 126 ms
78,880 KB
testcase_18 AC 143 ms
79,624 KB
testcase_19 AC 169 ms
80,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W=map(int,input().split())
L=list(input().split())
#print(L)
OP=L[0]
L=L[1:]

#print(OP,L)
ANS=[[0 for i in range(W)]for j in range(H)]
for h in range(H):
    N=input()
    for w in range(W):
        ANS[h][w]=eval(L[w]+OP+N)
for i in range(H):
    print(*ANS[i])
0