結果
| 問題 | No.1882 Areas of Triangle |
| ユーザー |
_matumo_
|
| 提出日時 | 2022-04-25 09:57:54 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 460 ms / 2,000 ms |
| + 943µs | |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 600 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 26,004 KB |
| 最終ジャッジ日時 | 2026-07-30 23:46:45 |
| 合計ジャッジ時間 | 5,996 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
N,K=map(int,input().split()) A=sorted(map(int,input().split())) K2=K*2 sm=0 H=N for a in A: L=-1 while H-L>1: M=(H+L)//2 if A[M]*a<K2: L=M else: H=M sm+=N-H print(sm)
_matumo_