結果

問題 No.987 N×Mマス計算(基本)
ユーザー deepjugglingdeepjuggling
提出日時 2023-06-12 11:53:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2023-09-02 07:43:36
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,124 KB
testcase_01 AC 73 ms
71,044 KB
testcase_02 AC 85 ms
76,268 KB
testcase_03 AC 83 ms
76,268 KB
testcase_04 AC 83 ms
76,424 KB
testcase_05 AC 84 ms
76,324 KB
testcase_06 AC 85 ms
76,428 KB
testcase_07 AC 83 ms
76,268 KB
testcase_08 AC 73 ms
71,084 KB
testcase_09 AC 74 ms
71,012 KB
testcase_10 AC 73 ms
71,124 KB
testcase_11 AC 85 ms
76,360 KB
testcase_12 AC 84 ms
76,544 KB
testcase_13 AC 83 ms
76,396 KB
testcase_14 AC 75 ms
71,128 KB
testcase_15 AC 84 ms
76,412 KB
testcase_16 AC 89 ms
76,352 KB
testcase_17 AC 87 ms
76,144 KB
testcase_18 AC 86 ms
76,336 KB
testcase_19 AC 86 ms
76,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
a = list(input().split())
mp = []
aa = []
for i in range(1,m+1):
    aa.append(int(a[i]))
for i in range(n):
    x = []
    b = int(input())
    for j in range(m):
        if a[0] == "+":
            x.append(aa[j]+b)
        else:
            x.append(aa[j]*b)
    print(*x)
0