题意:
解法:
由于点燃r个灯至少需要r的时间,
因此如果灯的持续时间t
code:
#include
// #define MULTI_CASE
#define SYNC_OFF
#define PI pair
// #define int long long
using namespace std;
// const int mod=998244353;
const int mod=1e9+7;
const int maxm=2e6+5;
int a[maxm];
int m,t,r;
void solve(){
cin>>m>>t>>r;
// cout<>a[i];
sort(a+1,a+1+m);
queueq;
int ans=0;
for(int i=1;i<=m;i++){
while(q.size()&&q.front()+t-1>T;while(T--)
#endif
solve();
}
void Init(){
#ifdef SYNC_OFF
ios::sync_with_stdio(0);cin.tie(0);
#endif
#ifndef ONLINE_JUDGE
freopen("../in.txt","r",stdin);
freopen("../out.txt","w",stdout);
#endif
}
signed main(){
Init();
Main();
return 0;
}