結果

問題 No.989 N×Mマス計算(K以上)
ユーザー kota_ritskota_rits
提出日時 2020-02-14 23:00:08
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
TLE  
実行時間 -
コード長 454 bytes
コンパイル時間 949 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 19,212 KB
最終ジャッジ日時 2023-07-28 18:50:37
合計ジャッジ時間 4,833 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,932 KB
testcase_01 AC 16 ms
7,724 KB
testcase_02 AC 15 ms
7,824 KB
testcase_03 AC 16 ms
7,772 KB
testcase_04 AC 16 ms
7,812 KB
testcase_05 AC 16 ms
7,728 KB
testcase_06 AC 16 ms
7,776 KB
testcase_07 AC 16 ms
7,724 KB
testcase_08 AC 16 ms
7,792 KB
testcase_09 AC 16 ms
7,776 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
n,m,k = map(int,stdin.readline().rstrip().split())
li = list(map(str,stdin.readline().rstrip().split()))
op = li[0]
b = [int(li[i]) for i in range(1,m+1)]
a = [int(stdin.readline().rstrip()) for _ in range(n)]
a.sort();b.sort()
pa = 0;pb = 0;point = 0
for i in a:
    for j in b:
        if op == "+":
            if i+j >= k:
                point += 1
        else:
            if i*j >= k:
                point += 1
print(point)
0