【链接】h在这里写链接


【题意】


在这里写题意

【题解】


大水题

【错的次数】


0

【反思】


在这了写反思

【代码】

/*

*/
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
#include <map>
#include <queue>
#include <iomanip>
#include <set>
#include <cstdlib>
#include <cmath>
using namespace std;
#define lson l,m,rt<<1
#define rson m+1,r,rt<<1|1
#define LL long long
#define rep1(i,a,b) for (int i = a;i <= b;i++)
#define rep2(i,a,b) for (int i = a;i >= b;i--)
#define mp make_pair
#define pb emplace_back
#define fi first
#define se second
#define ld long double
#define ms(x,y) memset(x,y,sizeof x)
#define ri(x) scanf("%d",&x)
#define rl(x) scanf("%lld",&x)
#define rs(x) scanf("%s",x)
#define rf(x) scnaf("%lf",&x)
#define oi(x) printf("%d",x)
#define ol(x) printf("%lld",x)
#define oc putchar(' ')
#define os(x) printf(x)
#define all(x) x.begin(),x.end()
#define Open() freopen("F:\\rush.txt","r",stdin)
#define Close() ios::sync_with_stdio(0)
#define sz(x) ((int) x.size())
#define ld long double typedef pair<int,int> pii;
typedef pair<LL,LL> pll; //mt19937 myrand(time(0));
//int get_rand(int n){return myrand()%n + 1;}
const int dx[9] = {0,1,-1,0,0,-1,-1,1,1};
const int dy[9] = {0,0,0,-1,1,-1,1,-1,1};
const double pi = acos(-1.0);
const int N = 1000; int a[N+10],n,k; int main(){
//Open();
//Close();
ri(n),ri(k);
int cnt = 0;
rep1(i,1,n){
int x;
ri(x);
a[x]++;
if (a[x]==k) cnt++;
}
oi(cnt);puts("");
return 0;
}

最新文章

  1. CentOS 7 下安装redis步骤
  2. c#的dllimport使用方法详解,调试找不到dll的方法
  3. JavaScript 之 document对象
  4. iOS禁用第三方键盘
  5. MySQL functions, IF, CASE
  6. C#反射的应用
  7. Task schedule 分类: 比赛 HDU 查找 2015-08-08 16:00 2人阅读 评论(0) 收藏
  8. CSS3属性box-shadow使用教程,css3box-shadow
  9. CleanMyMac 1.10.8
  10. directshow filter 调试步骤
  11. Effective Java2读书笔记-对于所有对象都通用的方法(二)
  12. android开发MD5加密工具类(一)
  13. MD5和Base64
  14. Python 对Twitter中指定话题的Tweet基本元素的频谱分析
  15. Java核心技术卷一基础知识-第11章-异常、断言、日志和调试-读书笔记
  16. JBoss 7 里一个EJB依赖其他jar的几种方式
  17. HDU5420 : Victor and Proposition
  18. [py]约瑟夫问题-循环队列
  19. C#中如何创建xml文件 增、删、改、查 xml节点信息
  20. HDU 6201 2017沈阳网络赛 树形DP或者SPFA最长路

热门文章

  1. vue-cli 目录结构详细讲解
  2. rabbit mq 基础流程(转)
  3. hive设置列头(永久模式)
  4. 【hihocoder 1477】闰秒
  5. Html5 拨打手机号码
  6. light oj 1079 01背包
  7. ArcMap中给点shp添加字段后,shp文件破坏无法打开
  8. PAT甲级——A1024 Palindromic Number
  9. 使用Tomcat过程中的常见问题
  10. js判断两个对象是否相等