結果
| 問題 | No.3640 Babies don't like Bat Beat |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-28 01:25:09 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 99 ms / 2,000 ms |
| + 963µs | |
| コード長 | 612 bytes |
| 記録 | |
| コンパイル時間 | 1,218 ms |
| コンパイル使用メモリ | 218,656 KB |
| 実行使用メモリ | 19,960 KB |
| 最終ジャッジ日時 | 2026-08-30 10:48:03 |
| 合計ジャッジ時間 | 4,041 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | |
| 小課題1 | 10 % | AC * 5 |
| 小課題2 | 10 % | AC * 10 |
| 小課題3 | 15 % | AC * 5 |
| 小課題4 | 20 % | AC * 10 |
| 小課題5 | 20 % | AC * 15 |
| 小課題6 | 25 % | AC * 33 |
| 合計 | 100 点 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int N; cin >> N;
vector<pair<long long,int>> Query;
int bil = 1'000'000'000;
while(N--){
long long l,r; cin >> l >> r;
while(2*l < bil) l *= 2,r *= 2;
Query.push_back({l,1}),Query.push_back({r,-1});
Query.push_back({l*2,1}),Query.push_back({r*2,-1});
}
sort(Query.begin(),Query.end());
int answer = 0,now = 0;
for(auto [ign,v] : Query){
now += v;
answer = max(answer,now);
}
cout << answer << endl;
}