結果

問題 No.989 N×Mマス計算(K以上)
ユーザー pluto77pluto77
提出日時 2020-02-26 15:59:40
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 448 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 17,068 KB
最終ジャッジ日時 2024-04-21 16:27:36
合計ジャッジ時間 3,168 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,816 KB
testcase_01 AC 12 ms
6,940 KB
testcase_02 AC 13 ms
6,940 KB
testcase_03 AC 13 ms
6,944 KB
testcase_04 AC 12 ms
6,940 KB
testcase_05 AC 13 ms
6,944 KB
testcase_06 WA -
testcase_07 AC 13 ms
6,944 KB
testcase_08 WA -
testcase_09 AC 13 ms
6,940 KB
testcase_10 AC 198 ms
13,444 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 89 ms
12,472 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 168 ms
11,680 KB
testcase_17 AC 85 ms
12,596 KB
testcase_18 AC 145 ms
9,856 KB
testcase_19 AC 152 ms
14,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki989
import bisect
n,m,k=map(int,raw_input().split())
op=raw_input().split()
b=[]
for i in range(1,len(op)):
 b.append(int(op[i]))
b.sort()
a=[]
for i in range(n):
 a.append(int(raw_input()))
res=n*m
for i in a:
 if op[0]=='+':
  res-=bisect.bisect_left(b,k-i)
 else:
  res-=bisect.bisect_left(b,k/i)
print res
0