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 评论