九度:1018<Hash>
来源:互联网 发布:it软件研发职责 编辑:程序博客网 时间:2024/06/07 22:35
http://ac.jobdu.com/problem.php?pid=1018
// 浙大2006年机试// 九度:1018// 题目:统计成绩// // 考察:Hash// // // // // // // #include <stdio.h>#include <cctype>#include <cmath>#include <cstring>#include <iostream>#include <string>#include <algorithm>#include <vector>#include <queue>#include <stack>#define SIZE 110using namespace std;int hash[SIZE];int N, score;void Init(){for(int i=0; i<SIZE; i++){hash[i] = 0;}}void InPut(){int t;for(int i=0; i<N; i++){scanf("%d", &t);hash[t]++;}scanf("%d", &score);}int main(){#ifdef ONLINE_JUDGE#elsefreopen("E:\\in.txt", "r" , stdin);#endifwhile(scanf("%d", &N) && N != 0){Init();InPut();printf("%d\n", hash[score]);}return 0;}
0 0
- 九度:1018<Hash>
- 九度题目1018(Hash)
- 九度1283(字符串+hash)
- 九度oj-1431:sort.hash应用
- 九度OJ 1482 BFS+HASH
- 【王道九度OJ】1018 统计同成绩学生人数||hash的应用
- 九度OJ 题目1018:统计同成绩学生人数(利用Hash)
- 九度考研机试教程 11-题目1431:Sort hash
- 九度考研真题 浙大 2006-2浙大 统计同成绩人数 hash
- 九度考研真题 清华 2011-3清华题目1088:剩下的树 hash
- 九度王道考研机试真题 2011-2北大题目1156:谁是你的潜在朋友 hash
- 九度1018
- 九度oj 1018
- 九度题目1018
- 九度 1018
- 【九度OJ】1018【模拟】
- 九度OJ 题目1018
- hash
- 九度:1016<火星A+B>
- 【九度】2014年王道论坛研究生机试练习赛第二场解题报告
- Maven构建Web工程和Tomcat7插件使用
- JDBC数据库访问
- Spring中ClassPathXmlApplicationContext类的简单使用
- 九度:1018<Hash>
- android 常见分辨率(mdpi、hdpi 、xhdpi、xxhdpi )及屏幕适配注意事项
- 字节流与字符流转换操作
- Podfile的详细配置
- java二维码生成与解析代码实现
- iOS 在UILabel显示不同的字体和颜色
- 三重背包
- BOM之navigator对象
- 用Resteasy实现restful web service