結果
問題 | No.989 N×Mマス計算(K以上) |
ユーザー |
![]() |
提出日時 | 2020-02-16 11:19:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 322 ms / 2,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 18,348 KB |
最終ジャッジ日時 | 2024-10-06 14:23:49 |
合計ジャッジ時間 | 2,747 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
from bisect import bisect_left,bisect def lmtB(A): if op=="+": return K-A else: return K/A N,M,K=map(int,input().split()) op,*b=input().split() B=list(map(int,b)) B.sort() cnt=0 for i in range(N): limit_b=lmtB(int(input())) cnt += M - bisect_left(B,limit_b) print(cnt)