描述: 编写一个程序实现将字符串中的所有"you"替换成"we" #include<stdio.h>#include<string.h>int main(){	char s[1005];	int a,b,n,i;	while(gets(s)!=NULL)//gets能接收含空格的字符串	{ a=st ...
                            
                            
                                分类:
其他好文   时间:
2017-07-24 10:02:33   
                                阅读次数:
133
                             
                    
                        
                            
                            
                                题目描述: 求A+B是否与C相等。 #include<stdio.h>int main(){	int N;	scanf("%d",&N);	while(N--)	{ double a,b,c; scanf("%lf %lf %lf",&a,&b,&c); if(a+b-c>=-0.0001&&a+b ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 21:00:03   
                                阅读次数:
120
                             
                    
                        
                            
                            
                                时间限制:1000 ms | 内存限制:65535 KB 难度:4 描写叙述南阳理工学院要进行用电线路改造。如今校长要求设计师设计出一种布线方式,该布线方式须要满足下面条件: 1、把全部的楼都供上电。 2、所用电线花费最少 输入第一行是一个整数n表示有n组測试数据。(n<5) 每组測试数据的第一行是 ...
                            
                            
                                分类:
编程语言   时间:
2017-07-23 19:48:34   
                                阅读次数:
133
                             
                    
                        
                            
                            
                                题目描述: 已知w是一个大于10但不大于1000000的无符号整数,若w是n(n≥2)位的整数,则求出w的后n-1位的数。 #include<stdio.h>#include<math.h>int main(){	int M;	scanf("%d",&M);	while(M--)	{ long in ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 19:37:20   
                                阅读次数:
151
                             
                    
                        
                            
                            
                                题目描述: 输入一个日期,格式如:2010 10 24 ,判断这一天是这一年中的第几天。 #include<stdio.h>int main(){int a,b=0,c,y,m,d,fib;scanf("%d",&a);while(a--){scanf("%d %d %d",&y,&m,&d);if ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 18:28:54   
                                阅读次数:
181
                             
                    
                        
                            
                            
                                题目描述: Tom has many cigarettes. We hypothesized that he has n cigarettes and smokes them one by one keeping all the butts. Out of k > 1 butts he can ro ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 18:13:10   
                                阅读次数:
139
                             
                    
                        
                            
                            
                                描述 某校的惯例是在每学期的期末考试之后发放奖学金。发放的奖学金共有五种,获取的条件各自不同: 1) 院士奖学金,每人8000元,期末平均成绩高于80分(>80),并且在本学期内发表1篇或1篇以上论文的学生均可获得; 2) 五四奖学金,每人4000元,期末平均成绩高于85分(>85),并且班级评议成 ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 12:40:42   
                                阅读次数:
130
                             
                    
                        
                            
                            
                                题意:给你一个高L长R宽C的图形。每个坐标都能够视为一个方格。你一次能够向上。下。左,右,前,后任一方向移动一个方格, 可是不能向有#标记的方格移动。 问:从S出发能不能到达E,假设能请输出最少的移动次数。 策略:简单的深搜。 注意:由于是求最少的移动次数。所以要从全部能到达的中选出最少的。 代码: ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 11:25:02   
                                阅读次数:
138
                             
                    
                        
                            
                            
                                题目描述: 给定两个数m,n,其中m是一个素数。 将n(0<=n<=10000)的阶乘分解质因数,求其中有多少个m。 #include<stdio.h>int main(){	int s,k;	scanf("%d",&s);	while(s--)	{ int m,n,i,b; scanf("%d % ...
                            
                            
                                分类:
其他好文   时间:
2017-07-23 09:56:02   
                                阅读次数:
144
                             
                    
                        
                            
                            
                                题目描述: 已知鸡和兔的总数量为n,总腿数为m。输入n和m,依次输出鸡和兔的数目,如果无解,则输出“No answer”(不要引号)。 #include<stdio.h>int main(){	int a;	scanf("%d",&a);	while(a--)	{ int n,m; scanf("% ...
                            
                            
                                分类:
其他好文   时间:
2017-07-22 21:18:58   
                                阅读次数:
228