結果

問題 No.989 N×Mマス計算(K以上)
ユーザー 💕💖💞💕💖💞
提出日時 2020-04-10 12:09:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 344 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 813,716 KB
最終ジャッジ日時 2023-10-12 23:20:37
合計ジャッジ時間 5,831 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
29,700 KB
testcase_01 AC 135 ms
29,656 KB
testcase_02 AC 138 ms
29,824 KB
testcase_03 AC 140 ms
29,652 KB
testcase_04 AC 141 ms
29,616 KB
testcase_05 AC 139 ms
29,748 KB
testcase_06 AC 139 ms
29,640 KB
testcase_07 AC 140 ms
29,792 KB
testcase_08 AC 139 ms
29,748 KB
testcase_09 AC 140 ms
29,816 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 MLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

n, m, k = map(int, input().split())

x1 = list(input().split())

op = x1.pop(0)
b_arr = np.array(list(map(int, x1)))
a_arr = np.array([int(input()) for i in range(n)])
a_arr = a_arr.reshape((n,1))

# print(a_arr)
# print(b_arr)

if op == '+':
    print((b_arr + a_arr >= k).sum())
else:
    print((b_arr * a_arr >= k).sum())
0