結果
問題 |
No.3039 配信者
|
ユーザー |
![]() |
提出日時 | 2025-02-28 21:28:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 730 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 1,906 ms |
コンパイル使用メモリ | 194,708 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-28 21:28:49 |
合計ジャッジ時間 | 9,773 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <stdio.h> #include <bits/stdc++.h> using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000000 #define Inf64 1000000000000000001LL int main(){ int n,h; cin>>n>>h; vector<int> imos(h+5,0); rep(i,n){ int a,b; cin>>a>>b; imos[a]++; imos[b+1]--; } rep(i,h+4)imos[i+1]+=imos[i]; int ans = 0; rep(i,h+5)ans = max(ans,imos[i]); cout<<ans<<endl; return 0; }