自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Pandora的博客

英雄不怕从零开始

  • 博客(7)
  • 收藏
  • 关注

原创 A+B Problem (64bit Integer + EOF)

代码: #include using namespace std; int main() { long long a,b; while(cin>> a>>b) { cout<<a+b<<endl; } return 0; } 我并不知道还有long long ,_int64等类型。晚上查查书,更

2016-05-31 17:56:26 297

原创 最长的单词

DESCRIPTION: 求一行句子中最长的单词,如果出现并列情况,输出字典序最小的单词,例如如果above和alive同时为最长单词,则输出above INPUT: 行1:一行空格分隔的字母,此行最少1个字符(且非空格)最多1000个字符,单词最长16个字符 OUTPUT: 行1:最长的单词 思路:读入字符串,分析出最长单词并保存,若有多个,输出最小单词。

2016-05-31 17:09:18 682

原创 A+B Problem (0 + EOL)

代码: #include #include using namespace std; int main() { int a,b; int c =0; while(cin>>a>>b && (a||b)) { if(c > 0)puts(""); c++; cout<<a + b<<end

2016-05-31 16:44:49 376

原创 A+B Problem (0)

代码: #include using namespace std; int main() { int a,b; while(1) { cin >> a >> b; if(a == 0 && b == 0)break; cout << a+b << endl; } return 0; }

2016-05-31 15:46:25 302

原创 A+B Problem (Case Count)

代码:  #include  using namespace std;  int main()  {      int a,b,n;      cin >> n;      while(n)      {          cin >> a >> b;          cout          n --;                     }      re

2016-05-31 15:36:24 241

原创 A+B Problem (EOF)

#include int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) { printf("%d\n", a+b); } return 0; } 不知道下面代码为什么不行:#include using namespace std; int main() {     int a,b;

2016-05-31 15:28:32 240

原创 A+B Problem

代码: #include using namespace std; int main() {     int a,b;     cin>>a>>b;           cout     return 0; }

2016-05-31 14:39:46 200

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除