結果

問題 No.989 N×Mマス計算(K以上)
ユーザー ntudantuda
提出日時 2024-01-01 20:29:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 86,584 KB
最終ジャッジ日時 2024-01-01 20:29:06
合計ジャッジ時間 2,826 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 35 ms
53,460 KB
testcase_04 AC 36 ms
53,460 KB
testcase_05 AC 36 ms
53,460 KB
testcase_06 WA -
testcase_07 AC 36 ms
53,460 KB
testcase_08 WA -
testcase_09 AC 36 ms
53,460 KB
testcase_10 AC 123 ms
81,504 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 91 ms
82,292 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 103 ms
79,900 KB
testcase_17 AC 91 ms
82,280 KB
testcase_18 AC 101 ms
76,448 KB
testcase_19 AC 111 ms
85,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left
N,M,K = map(int,input().split())
op, *B = input().split()
B = sorted([int(s) for s in B])
A = [int(input()) for _ in range(N)]

ans = 0
for a in A:
    if op == "+":
        c = K - a
    else:
        c = K // a
    ans += M - bisect_left(B,c)
print(ans)
0