#include #include #include #include using namespace std; map book; const int INF=2e9; int main() { std::ios::sync_with_stdio(false); int n,x,y,z; cin>>n>>x>>y>>z; for(int i=1;i<=n;i++) { int l,r; cin>>l>>r; book[-INF]+=x; book[l]+=y-x; book[r+1]+=z-y; } int ans=0,res=0; for(auto x:book) { res+=x.second; ans=max(ans,res); } cout<
上一篇 OpenCV实战(1): 检测文本字符
下一篇 Linux,数据库,C++常见面试题
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号