网站首页
编程语言
数据库
系统相关
其他分享
编程问答
Apartments
2024-07-30
Apartments
原题链接题解考虑从左到右第一个在游客范围里的公寓,显然把这个公寓分给范围里最左边的游客最优,因为右边的游客更高概率遇到公寓code#include<bits/stdc++.h>#definelllonglong#definelowbit(x)((x)&(-x))usingnamespacestd;constllinf=1e18;constllmod=1e9+7;