結果
| 問題 |
No.3039 配信者
|
| ユーザー |
|
| 提出日時 | 2025-02-28 21:22:01 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 644 ms / 2,000 ms |
| コード長 | 624 bytes |
| コンパイル時間 | 6,144 ms |
| コンパイル使用メモリ | 332,540 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2025-02-28 21:22:18 |
| 合計ジャッジ時間 | 14,940 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using mint = atcoder::static_modint<998244353>;
// // using mint = atcoder::static_modint<1000000007>;
using ld = long double;
using ll = long long;
#define mp(a,b) make_pair(a,b)
#define rep(i,s,n) for(int i=s; i<(int)n; i++)
const vector<int> dx{1,0,-1,0},dy{0,1,0,-1};
int main(){
int n,h;cin >> n >> h;
vector<int> table(h+10);
rep(i,0,n){
int a,b;cin >> a >> b;
table[a]++;
table[b+1]--;
}
rep(i,1,h+10)table[i]+=table[i-1];
cout << *max_element(table.begin(),table.end());
}