結果

問題 No.987 N×Mマス計算(基本)
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-01 14:32:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 1,547 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 76,780 KB
最終ジャッジ日時 2023-08-18 12:21:26
合計ジャッジ時間 3,298 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,216 KB
testcase_01 AC 69 ms
71,172 KB
testcase_02 AC 82 ms
76,492 KB
testcase_03 AC 80 ms
76,480 KB
testcase_04 AC 83 ms
76,520 KB
testcase_05 AC 78 ms
76,440 KB
testcase_06 AC 75 ms
76,512 KB
testcase_07 AC 74 ms
76,780 KB
testcase_08 AC 65 ms
71,388 KB
testcase_09 AC 65 ms
71,388 KB
testcase_10 AC 66 ms
71,424 KB
testcase_11 AC 77 ms
76,484 KB
testcase_12 AC 73 ms
76,372 KB
testcase_13 AC 75 ms
76,624 KB
testcase_14 AC 64 ms
71,152 KB
testcase_15 AC 75 ms
76,308 KB
testcase_16 AC 80 ms
76,480 KB
testcase_17 AC 76 ms
76,488 KB
testcase_18 AC 78 ms
76,536 KB
testcase_19 AC 77 ms
76,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
B = list(map(str,input().split()))
op = B[0]
B.remove(op)
for i in range(n):
    A = int(input())
    for j in B:
        if op == "+":
            print(A+int(j),end=" ")
        else:
            print(A*int(j),end=" ")
    print("")
0