結果
| 問題 | No.3422 Sazanka's hobby |
| コンテスト | |
| ユーザー |
mkawa2
|
| 提出日時 | 2026-01-11 13:57:55 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 244 bytes |
| 記録 | |
| コンパイル時間 | 605 ms |
| コンパイル使用メモリ | 20,808 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-01-11 13:58:09 |
| 合計ジャッジ時間 | 7,092 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 TLE * 3 -- * 3 |
ソースコード
from collections import Counter
n,m=map(int,input().split())
cnt=Counter()
for _ in range(n):
a,b=map(int,input().split())
d=(m-a)//b+1
cnt[d]+=1
ans=0
s=0
for d in sorted(cnt):
s+=cnt[d]
ans=max(ans,(s+d-1)//d)
print(ans)
mkawa2