摘要: 首先写了个较为暴力的代码。 const int N=1010; bool sex[N]; double sum[N][N]; int n,m; void print(int a,int b) { if(!sex[a]) cout<<'-'; cout<<a<<' '; if(!sex[b]) cou 阅读全文
posted @ 2021-04-24 11:35 Dazzling! 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 开个桶进行统计,老套路了。 const int N=10010; struct Node { int id; int cnt; int money; bool operator<(const Node &W) const { if(money != W.money) return money > W 阅读全文
posted @ 2021-04-24 11:18 Dazzling! 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 模拟。 注意点 所有未与 E 记录配对的 S 记录以及未与 S 记录配对的 E 记录都必须忽略。 const int N=1010; struct Node { int st_tim; int ed_tim; }a[N]; bool borrow[N]; int n; int calc(int hh 阅读全文
posted @ 2021-04-24 11:07 Dazzling! 阅读(56) 评论(0) 推荐(0) 编辑