摘要:
原题链接 题解 考虑从左到右第一个在游客范围里的公寓,显然把这个公寓分给范围里最左边的游客最优,因为右边的游客更高概率遇到公寓 code #include<bits/stdc++.h> #define ll long long #define lowbit(x) ((x)&(-x)) using n 阅读全文
摘要:
原题链接 题解 非交叉匹配 code #include<bits/stdc++.h> #define ll long long using namespace std; const ll mod = 1e9+7; ll qpow(ll a, ll b) { ll res = 1; while (b) 阅读全文