結果

問題 No.989 N×Mマス計算(K以上)
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-04-14 23:38:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 1,099 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 90,280 KB
最終ジャッジ日時 2023-08-26 00:10:20
合計ジャッジ時間 4,312 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,136 KB
testcase_01 AC 70 ms
71,108 KB
testcase_02 AC 72 ms
71,308 KB
testcase_03 AC 71 ms
71,172 KB
testcase_04 AC 72 ms
71,316 KB
testcase_05 AC 74 ms
71,340 KB
testcase_06 WA -
testcase_07 AC 75 ms
71,308 KB
testcase_08 WA -
testcase_09 AC 72 ms
71,136 KB
testcase_10 AC 155 ms
83,852 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 124 ms
84,608 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 134 ms
82,380 KB
testcase_17 AC 123 ms
84,524 KB
testcase_18 AC 134 ms
78,240 KB
testcase_19 AC 144 ms
87,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left
n,m,k = map(int,input().split())
L = list(input().split())
op = L[0]
B = [int(b) for b in L[1:]]
B.sort()
A = [int(input()) for i in range(n)]
ans = 0
for a in A:
    if op == "+":
        ans += m-bisect_left(B,k-a)
    else:
        ans += m-bisect_left(B,k//a)
print(ans)
0