摘要: P1077 [NOIP2012 普及组] 摆花 题目描述 小明的花店新开张,为了吸引顾客,他想在花店的门口摆上一排花,共 m 盆。通过调查顾客的喜好,小明列出了顾客最喜欢的 n 种花,从 1 到 n 标号。为了在门口展出更多种花,规定第i种花不能超过 a[i] 盆,摆花时同一种花放在一起,且不同种类 阅读全文
posted @ 2024-05-15 20:19 LTphy 阅读(35) 评论(0) 推荐(0)
摘要: 题目链接 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=2e5+7; ll n,c; ll a[N]; map<ll,ll>m; int main(){ cin>>n>>c; for(i 阅读全文
posted @ 2024-05-15 17:30 LTphy 阅读(21) 评论(0) 推荐(0)