![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
l清风明月
我是一个心怀梦想的青年人
展开
-
C语言水池数目测试题
时间限制:3000ms | 内存限制:65535KB难度:4描述南阳理工学院校园里有一些小河和一些湖泊,现在,我们把它们通一看成水池,假设有一张我们学校的某处的地图,这个地图上仅标识了此处是否是水池,现在,你的任务来了,请用计算机算出该地图中共有几个水池。输入第一行输入一个整数N,表示共有N组测试数据每一组数据都是先输入该地图的行数m(0原创 2020-05-13 10:09:21 · 698 阅读 · 0 评论 -
密码
密码Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 36531 Accepted Submission(s): 14638Problem Description网上流传一句话:"常在网上飘啊,哪能不原创 2015-04-23 22:52:45 · 494 阅读 · 0 评论 -
A\B?
A|B?Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14296 Accepted Submission(s): 10964Problem Description正整数A是否能被正整数B整除,不知道为原创 2015-04-23 19:49:02 · 800 阅读 · 0 评论 -
发工资咯
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 38102 Accepted Submission(s): 21170Problem Description作为的老师,最盼望的日子就是每月的8号了,因为这一翻译 2015-04-13 21:35:13 · 504 阅读 · 0 评论 -
整除的尾数
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27386 Accepted Submission(s): 11588Problem Description一个整数,只知道前几位,不知道末二位,被另一个整数原创 2015-04-24 21:56:13 · 651 阅读 · 0 评论 -
用数组求一位数组中的最大值,最小值和平均分,并求出有多少个数超过平均分
#includemain(){int a=0,b,n,i,j,s[100],max,min,w;scanf("%d",&n);w=0;for(i=0;iscanf("%d",&s[i]);max=s[0];for(i=1;iif(maxmax=s[i];//else {max=s[i+1];min=s[i];}}min=s[0];for(i=原创 2015-04-21 16:16:35 · 2001 阅读 · 0 评论 -
输入一个班30位同学的成绩,
#includemain(){int a,n,b,c,d,e,f,i,j,s[100];for(i=0;iscanf("%d",&s[i]);a=0,b=0,c=0,d=0,e=0,j=0;for(i=0;i{if(s[i]{a++;continue;}if(s[i]{b++;continue;}if(s[i]{c++;continue;}i原创 2015-04-21 16:38:55 · 3491 阅读 · 0 评论 -
picture(长方形)
PictureTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19457 Accepted Submission(s): 10008Problem DescriptionGive you the wid原创 2015-04-26 08:38:10 · 518 阅读 · 0 评论 -
手机短号
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 20495 Accepted Submission(s): 12724Problem Description大家都知道,手机号是一个11位长的数字串,同时原创 2015-04-25 22:16:14 · 1304 阅读 · 0 评论 -
Bitset(位组)
time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15281 Accepted Submission(s): 11595Problem DescriptionGive you a number on base原创 2015-04-25 18:35:08 · 1290 阅读 · 2 评论 -
随机产生12个5~15之间的整数放入一位数组中,然后输出这些数,每行输出四个数
#includemain(){int a,i,j,n,b,s[120];for(i=0;iscanf("%d",&s[i]);for(i=0;i{if(i%4==0)printf("\n");printf("%d ",s[i]);}return 0;}原创 2015-04-21 15:48:06 · 6750 阅读 · 0 评论 -
as easy problem
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16297 Accepted Submission(s): 10937Problem Descriptionwe define f(A) = 1, f(a原创 2015-04-29 20:56:04 · 503 阅读 · 0 评论 -
利息计算
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3837 Accepted Submission(s): 2736Problem Description为自行解决学费,chx勤工俭学收入10000元以1年定原创 2015-04-27 13:36:09 · 954 阅读 · 0 评论 -
阿牛的EOF牛肉串
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24373 Accepted Submission(s): 11423Problem Description今年的ACM暑期集训队一共有18人,分为6支队伍。其中原创 2015-05-10 09:20:19 · 858 阅读 · 0 评论 -
The Hardest Problem Ever(有史以来最难的题)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19083 Accepted Submission(s): 8885Problem DescriptionJulius Caesar lived in a time原创 2015-05-10 22:45:36 · 551 阅读 · 0 评论 -
骨牌铺方格
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34709 Accepted Submission(s): 16840Problem Description在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方原创 2015-05-09 18:08:55 · 399 阅读 · 0 评论 -
不容易系列之二
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19300 Accepted Submission(s): 15534Problem Description你活的不容易,我活的不容易,他活的也不容易。不过,原创 2015-04-28 07:53:01 · 660 阅读 · 2 评论 -
不容易系列之(3)—— LELE的RPG难题
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35148 Accepted Submission(s): 14106Problem Description人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深原创 2015-05-11 18:56:48 · 599 阅读 · 0 评论 -
对n*n矩阵,以对角线为对称线,将对称元素相加并将结果存放在下三角元素中,右上角三角元素置0.例如,若n=4,有下列矩阵
21 12 13 24 21 0 0 025 16 47 38 计算结果为37 16 0 029 11 32 54 42 58 32 042 21 33 10原创 2015-04-28 17:49:45 · 8488 阅读 · 1 评论 -
用递归算法计算n!,n!可用下述公式表示
用递归算法计算n!,n!可用下述公式表示:n!=1(n=0,1)n!=n*(n-1)!(n>1)#includedouble p(int n){ int i; double t; if(n==1||n==0) t=1; else t=n*p(n-1); return t;原创 2015-05-11 20:44:44 · 7631 阅读 · 0 评论 -
折线分割平面
time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19714 Accepted Submission(s): 13519Problem Description我们看到过很多直线分割平面的题目,今天的这个题目稍原创 2015-04-28 21:18:18 · 462 阅读 · 0 评论 -
Max Num(最大数)
time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16377 Accepted Submission(s): 10155Problem DescriptionThere are some students原创 2015-04-28 21:34:06 · 2503 阅读 · 0 评论 -
空心三角形
#includemain(){ int j,i,b,k,s,l,g,c=0; char a;while(scanf("%c",&a)!=EOF) { if(a=='@') break; if(c) printf("\n");c++; scanf("%d",&b); s=b; g=b; for(i=1;i原创 2015-05-04 20:43:14 · 567 阅读 · 0 评论 -
人见人爱A-B
time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 52806 Accepted Submission(s): 14878Problem Description参加过上个月月赛的同学一定还记得其中的一个最简原创 2015-05-04 21:40:55 · 605 阅读 · 0 评论 -
Lowest Common Multiple Plus(最小公倍数)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39998 Accepted Submission(s): 16564Problem Description求n个数的最小公倍数。 Input原创 2015-05-12 15:00:11 · 824 阅读 · 0 评论 -
人见人爱A^B
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27441 Accepted Submission(s): 18744Problem Description求A^B的最后三位数表示的整数。说明:A^B的含义原创 2015-05-12 22:51:47 · 828 阅读 · 0 评论 -
夹角有多大II
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8129 Accepted Submission(s): 4097Problem Description这次xhd面临的问题是这样的:在一个平面内有两个点,求两个原创 2015-05-12 22:20:17 · 792 阅读 · 0 评论 -
查找最大元素
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35068 Accepted Submission(s): 19402Problem Description对于输入的每个字符串,查找其中的最大字母,在该字母后面插入原创 2015-05-13 14:06:59 · 726 阅读 · 0 评论 -
有一个长度不大于40的字符串,已知其中包含两个字符‘A',求处于这两个字符之间的字符的个数,并把这些字符依次打印出来
#include#include//#includemain(){ int a,j,i,c; char x[100]; while(gets(x)) { j=strlen(x); for(i=0;i if(x[i]=='A') { a=i;原创 2015-05-13 13:31:47 · 7073 阅读 · 0 评论 -
Fibbonacci Number
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17169 Accepted Submission(s): 8151Problem DescriptionYour objective for this ques原创 2015-05-13 14:28:29 · 891 阅读 · 0 评论 -
编写一个函数,由实参传来一个字符串,统计此字符串中字母,数字,空格,和其他字符的个数,在主函数中输入字符串以及输出上述统计的结果。再考虑将算的的结果放在一个数组中
#include#includeint f(int g,char s[],int h[]){ int i,a=0,b=0,c=0,d=0; for(i=0;i { if(s[i]>='a'&&s[i] h[0]++; else if(s[i]>='0'&&s[i] h[1]++; else if(s原创 2015-05-13 13:48:45 · 11256 阅读 · 0 评论 -
汉诺塔IV
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4739 Accepted Submission(s): 3468Problem Description还记得汉诺塔III吗?他的规则是这样的:不允许直接从最左(原创 2015-05-15 14:00:40 · 673 阅读 · 0 评论 -
Elevator(电梯)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50649 Accepted Submission(s): 27934Problem DescriptionThe highest building in our原创 2015-05-06 14:14:34 · 1002 阅读 · 0 评论 -
汉诺塔III
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11567 Accepted Submission(s): 5255Problem Description约19世纪末,在欧州的商店中出售一种智力玩具,在一块铜板原创 2015-05-14 14:37:02 · 695 阅读 · 0 评论 -
杨辉三角
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42996 Accepted Submission(s): 18055Problem Description还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述原创 2015-05-14 14:06:50 · 529 阅读 · 0 评论 -
汉诺塔V
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3291 Accepted Submission(s): 1909Problem Description用1,2,...,n表示n个盘子,称为1号盘,2号盘,..原创 2015-05-16 13:49:35 · 526 阅读 · 0 评论 -
汉诺塔VI
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1834 Accepted Submission(s): 1279Problem Descriptionn个盘子的汉诺塔问题的最少移动次数是2^n-1,即在移动过原创 2015-05-17 14:50:30 · 570 阅读 · 0 评论 -
母牛的故事
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51628 Accepted Submission(s): 25878Problem Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个原创 2015-05-21 14:47:00 · 677 阅读 · 0 评论 -
(要求使用指针方法)一个班有四名学生,五门课。(1)求第一门课的平均分;(2)找出有两门以上课不及格的学生,输出他们的学号、全部课程成绩和平均成绩;(3)找出平均成绩在90分以上或全部课程成绩均在85
(3)找出平均成绩在90分以上或全部课程成绩均在85分以上的学生。分别编写3个函数实现以上3个功能。#include#include void aver1(float *b){ int i,j; float s=0; for(i=0;i { s=s+*(b+j); j=j+5;} printf("%f\n",s/4);原创 2015-05-29 14:31:41 · 14553 阅读 · 1 评论 -
Climbing Worm
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14065 Accepted Submission(s): 9500Problem DescriptionAn inch worm is at the botto原创 2015-05-31 14:52:00 · 723 阅读 · 0 评论