分数统计-整数
来源:互联网 发布:硬盘分区数据会丢失吗 编辑:程序博客网 时间:2024/05/01 12:52
这几天被机器学习的复习折腾的死去活来,今儿是在坚持不下去了,回来写写代码,发现竟然完全没有思路了,哼,这才几天没写啊~写了个短的~
/*3-1 int*/#include<stdio.h>#include<string.h>#define MAX 101+10int score[MAX]; int main(){ freopen("data.in","r",stdin); freopen("data.out","w",stdout); int n,max=0,i; memset(score,0,sizeof(score)); while(scanf("%d",&n)==1) { score[n]++; if(score[n]>max) max = score[n]; } for(i=0;i<=100;i++) { if(score[i]==max) { printf("%d\n",i); } } return 0;}
刚开始没读懂题,哎,果然复习影响智商
0 0
- 分数统计-整数
- 分数统计
- 分数统计
- 分数统计
- 分数统计
- 统计整数
- 数据结构-运动会分数统计
- 数据结构 运动会分数统计
- 运动会分数统计
- 3499. 分数统计
- 运动会分数统计
- 3499. 分数统计
- 运动会分数统计
- <数据结构>运动会分数统计
- 学生试卷分数统计
- 求分数与分数,分数与整数,整数与整数最小公倍数及最小公约数
- 简单统计分数的程序
- 1025:统计硬币 分数: 1
- 深入理解Android消息处理系统——Looper、Handler、Thread
- JavaScript深入浅出之函数
- android 中style和Theme
- xml格式解析
- POJ 3335 Rotating Scoreboard 半平面交
- 分数统计-整数
- LeetCode – Two Sum (Java)
- 简化Spring的XML配置(一)——自动装配bean属性
- Android Studio——handle是发出消息后就自动接收消息的吗?
- 基础概念
- Android打空的签名包
- C++ Ping源码(Linux/Unix)
- 论文笔记 《Rich feature hierarchies for accurate object detection and semantic segmentation》
- HibernateTemplate使用