![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二分
梦忆晴天
下水道里的鼠人
展开
-
Save More Mice (贪心 二分)
贪心code#include<bits/stdc++.h>#define x first#define gcfx main#define y second#define mak make_pair#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)#define debug(a) cout<<a<<'\n'#define endl '\n'#define umap unorder原创 2022-05-19 22:39:46 · 144 阅读 · 0 评论 -
Eugeny and Play List(双指针 前缀和 二分)
Eugeny and Play List - CodeForces 302B - Virtual Judge (csgrandeur.cn)题意:给定歌曲和播放时间和播放次数,求出某一分钟在播放那首歌曲加深了对二分的理解code1:双指针#include<bits/stdc++.h>using namespace std;const int N=1e5+10;typedef long long LL;struct node{ LL x,y;}a[N];LL...原创 2022-05-12 16:54:35 · 147 阅读 · 0 评论