首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

二零零六年第4题

2013-11-08 
2006年第4题题目地址:http://jobdu.sinaapp.com/problem.php?cid1040&pid9C语言源码:#includestdio.hi

2006年第4题

题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=9

C语言源码:

#include<stdio.h>int main(){int n,i,hash[101],x;scanf("%d",&n);while(n){for(i=0;i<101;i++)hash[i]=0;for(i=0;i<n;i++){scanf("%d",&x);hash[x]++;}scanf("%d",&x);printf("%d\n",hash[x]);scanf("%d",&n);}}


热点排行