結果

問題 No.987 N×Mマス計算(基本)
ユーザー tnodinotnodino
提出日時 2022-02-04 20:39:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 80,624 KB
最終ジャッジ日時 2023-09-02 04:22:28
合計ジャッジ時間 3,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,280 KB
testcase_01 AC 66 ms
71,324 KB
testcase_02 AC 147 ms
79,308 KB
testcase_03 AC 89 ms
77,724 KB
testcase_04 AC 114 ms
78,716 KB
testcase_05 AC 108 ms
78,368 KB
testcase_06 AC 127 ms
79,104 KB
testcase_07 AC 101 ms
78,152 KB
testcase_08 AC 72 ms
71,520 KB
testcase_09 AC 70 ms
71,536 KB
testcase_10 AC 71 ms
71,740 KB
testcase_11 AC 127 ms
79,168 KB
testcase_12 AC 139 ms
79,524 KB
testcase_13 AC 93 ms
78,040 KB
testcase_14 AC 68 ms
71,344 KB
testcase_15 AC 100 ms
78,132 KB
testcase_16 AC 147 ms
79,600 KB
testcase_17 AC 127 ms
78,800 KB
testcase_18 AC 141 ms
79,536 KB
testcase_19 AC 170 ms
80,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
L = list(input().split())
op = L[0]
B = list(map(int, L[1:]))
A = list(int(input()) for _ in range(N))
for i in range(N):
    ans = []
    for j in range(M):
        ans.append(eval(f'{A[i]}{op}{B[j]}'))
    print(*ans)
0