摘要: 字符串替换时间限制:3000ms | 内存限制:65535KB难度:2描述编写一个程序实现将字符串中的所有"you"替换成"we"输入输入包含多行数据每行数据是一个字符串,长度不超过1000数据以EOF结束输出对于输入的每一行,输出替换后的字符串样例输入you are what you do样例输出we are what we do解题思路:从第一个字母开始连续三个分别是 you;即可输出we否则原阳输出一个字符即可。#include #includeint main(){ int n,m,i,j,k,t; char a[1100]; while(sca 阅读全文
posted @ 2013-07-28 17:48 hpuacm周宏伟 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57677Accepted Submission(s): 21082 Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time 阅读全文
posted @ 2013-07-28 16:38 hpuacm周宏伟 阅读(131) 评论(0) 推荐(0) 编辑