![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
君卿
这个作者很懒,什么都没留下…
展开
-
A Famous Music Composer
#include<iostream>#include<cstdio>#include<cstring>#include<stdlib.h>using namespace std;int main(){ //string a,b;注意字符串比较要用strcmp函数,不能直接比较,而且不能用string数据类型 char a[5],b[15]; int...原创 2018-04-10 22:03:56 · 643 阅读 · 0 评论 -
水题 出现次数最多的字母
//给定一个只有小写字母和数字组成的字符串,问字符串中出现次数最多的小写字母,若有多个符合要求的,则输出字典序最小的。 //字典序://a<b<c<d<...<z//a<b<c<d<...<z//。 //输入//第一行输入一个整数//T//T//,代表有//T//T//组测试数据。//每组数据输入一个字符串//str//str//。 //...原创 2018-03-22 20:11:20 · 773 阅读 · 0 评论 -
1040 as easy as a+b
Problem DescriptionThese days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, I got it after many waking nights.Give you...原创 2018-03-13 19:55:54 · 148 阅读 · 0 评论 -
c++ a+b 3
//#include<cstdio>#include<iostream>using namespace std;int main(){ int a,n; while(cin>>n&&n!=0) { int b=0;//b的值必须放在循环里面每次归零,这一点容易忘记,总会写在最上面。 while(n--) { cin>>a; ...原创 2018-03-10 20:34:47 · 466 阅读 · 0 评论 -
C++ a+b 2
//#include<cstdio>#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b&&(a!=0||b!=0))//while(cin>>a>>b&&(a||b))//这里容易想原创 2018-03-10 20:17:55 · 736 阅读 · 0 评论 -
c++ a+b 1
//#include<cstdio>#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) { cout<<a+b<<endl; } return 0;}原创 2018-03-10 19:49:09 · 451 阅读 · 0 评论