結果

問題 No.987 N×Mマス計算(基本)
ユーザー ABKZABKZ
提出日時 2021-08-01 13:27:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 76,568 KB
最終ジャッジ日時 2023-10-14 18:45:23
合計ジャッジ時間 3,862 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,280 KB
testcase_01 AC 75 ms
71,188 KB
testcase_02 AC 87 ms
76,332 KB
testcase_03 AC 87 ms
76,304 KB
testcase_04 AC 88 ms
76,180 KB
testcase_05 AC 87 ms
76,320 KB
testcase_06 AC 85 ms
76,200 KB
testcase_07 AC 86 ms
76,500 KB
testcase_08 AC 77 ms
71,456 KB
testcase_09 AC 78 ms
71,140 KB
testcase_10 AC 78 ms
71,428 KB
testcase_11 AC 86 ms
76,252 KB
testcase_12 AC 88 ms
76,440 KB
testcase_13 AC 86 ms
76,472 KB
testcase_14 AC 77 ms
71,116 KB
testcase_15 AC 87 ms
76,560 KB
testcase_16 AC 90 ms
76,508 KB
testcase_17 AC 88 ms
76,540 KB
testcase_18 AC 89 ms
76,568 KB
testcase_19 AC 91 ms
76,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
op, *B = input().split()
B = list(map(int, B))
A = [int(input()) for _ in range(N)]

C = [[a * b if op == "*" else a + b for b in B] for a in A]

for row in C:
    print(*row)
0