結果

問題 No.987 N×Mマス計算(基本)
ユーザー mlihua09mlihua09
提出日時 2020-08-28 17:50:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 29,624 KB
最終ジャッジ日時 2023-08-08 19:55:33
合計ジャッジ時間 5,304 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
29,536 KB
testcase_01 AC 127 ms
29,364 KB
testcase_02 AC 132 ms
29,404 KB
testcase_03 AC 129 ms
29,520 KB
testcase_04 AC 133 ms
29,600 KB
testcase_05 AC 131 ms
29,404 KB
testcase_06 AC 133 ms
29,396 KB
testcase_07 AC 131 ms
29,536 KB
testcase_08 AC 129 ms
29,540 KB
testcase_09 AC 128 ms
29,532 KB
testcase_10 AC 129 ms
29,420 KB
testcase_11 AC 128 ms
29,512 KB
testcase_12 AC 127 ms
29,592 KB
testcase_13 AC 125 ms
29,536 KB
testcase_14 AC 127 ms
29,540 KB
testcase_15 AC 126 ms
29,472 KB
testcase_16 AC 129 ms
29,540 KB
testcase_17 AC 131 ms
29,464 KB
testcase_18 AC 132 ms
29,624 KB
testcase_19 AC 133 ms
29,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


import numpy as np

N, M = map(int, input().split())

B = input().split()

op = B[0]

B = np.array(list(map(int, B[1:])))


if op == '+':
    
    for i in range(N):
        
        print(*(B + int(input())))
    
else:
    
    for i in range(N):
        
        print(*(B * int(input())))
0