結果

問題 No.987 N×Mマス計算(基本)
ユーザー naoe123naoe123
提出日時 2020-04-08 02:41:18
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,360 KB
最終ジャッジ日時 2023-09-22 23:31:34
合計ジャッジ時間 3,002 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,928 KB
testcase_01 AC 16 ms
7,856 KB
testcase_02 AC 69 ms
8,216 KB
testcase_03 AC 28 ms
8,180 KB
testcase_04 AC 54 ms
8,212 KB
testcase_05 AC 48 ms
8,360 KB
testcase_06 AC 64 ms
8,288 KB
testcase_07 AC 38 ms
8,300 KB
testcase_08 AC 19 ms
7,704 KB
testcase_09 AC 22 ms
7,804 KB
testcase_10 AC 20 ms
7,732 KB
testcase_11 AC 65 ms
7,776 KB
testcase_12 AC 75 ms
7,808 KB
testcase_13 AC 34 ms
7,816 KB
testcase_14 AC 18 ms
7,776 KB
testcase_15 AC 37 ms
7,816 KB
testcase_16 AC 82 ms
7,756 KB
testcase_17 AC 60 ms
7,776 KB
testcase_18 AC 80 ms
7,912 KB
testcase_19 AC 112 ms
7,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=list(map(int,input().split()))
l1=input().split()
l2=[int(input()) for i in range(N)]
op=l1[0]
l1=l1[1:]
l1=[int(n) for n in l1]
for i in range(N):
    for j in range(M):
        print(eval(str(l2[i])+op+str(l1[j])),end="")
        if j!=M-1:
            print(' ',end="")
    if i!=N-1:
        print('\n',end="")
0