結果

問題 No.987 N×Mマス計算(基本)
ユーザー nehan_der_thalnehan_der_thal
提出日時 2020-02-14 21:53:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 64,128 KB
最終ジャッジ日時 2024-04-16 01:52:44
合計ジャッジ時間 1,972 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,712 KB
testcase_01 AC 41 ms
51,840 KB
testcase_02 AC 55 ms
62,848 KB
testcase_03 AC 55 ms
61,440 KB
testcase_04 AC 57 ms
62,336 KB
testcase_05 AC 55 ms
61,696 KB
testcase_06 AC 56 ms
62,336 KB
testcase_07 AC 56 ms
61,696 KB
testcase_08 AC 43 ms
52,224 KB
testcase_09 AC 43 ms
52,096 KB
testcase_10 AC 42 ms
52,608 KB
testcase_11 AC 57 ms
62,464 KB
testcase_12 AC 58 ms
62,976 KB
testcase_13 AC 55 ms
61,568 KB
testcase_14 AC 42 ms
52,224 KB
testcase_15 AC 57 ms
62,080 KB
testcase_16 AC 57 ms
62,976 KB
testcase_17 AC 57 ms
62,720 KB
testcase_18 AC 57 ms
63,232 KB
testcase_19 AC 60 ms
64,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
bs = []
for i in range(N+1):
    if i == 0:
        X = input().split()
        e = X[0] == '+'
        bs = list(map(int, X[1:]))
        continue
    x = int(input())
    if e:
        print(*[x+y for y in bs])
    else:
        print(*[x*y for y in bs])
0