摘要: 注意应该判断字符串" no good"(NO前有空格)#include #include #include #include using namespace std;int main(){ char a[20],b[20]; int n; while(cin>>n&&n) { memset(a,'-',sizeof(a)); memset(b,'... 阅读全文
posted @ 2013-04-06 05:47 码代码的猿猿 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int gcd(int a,int b){ if(a>a>>b) { int c=gcd(a,b); cout<<a*b/c<<endl; } return 0;} 阅读全文
posted @ 2013-04-06 01:04 码代码的猿猿 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 注意结尾处补上个5,很简单的水题#include #include #include using namespace std;int nth=0;void function(char* s,int& a,int wei){ a=0; for(int i=0;i>str) { int len=strlen(str); str[len]='5'; ... 阅读全文
posted @ 2013-04-06 00:40 码代码的猿猿 阅读(88) 评论(0) 推荐(0) 编辑