Begin1 - Unit0 - a+b

背景 Background
  本题属于TYVJ-BEGIN系列的第一道,本系列共有三十一道题目,难度递增,适合新学习语言的朋友。

描述 Description
  输入a和b,输出a+b

输入格式 Input Format
  两个数a,b

输出格式 Output Format
  一个数a+B

样例输入 Sample Input
  4 5

样例输出 Sample Output
  9

时间限制 Time Limitation
  1s

注释 Hint
  a,b均在longint范围内 

/*
ID: beta.
PROB: <Tyvj>Begin-Unit0-a+b
LANG: C++
*/
#include 
<iostream>
using namespace std;
int main(){
    
int a,b;
    cin
>>a>>b;
    cout
<<a+b;
    
return(0);
}

posted on 2010-11-13 11:35 beta. 阅读(176) 评论(1)  编辑 收藏 引用 所属分类: Tyvj初级题库

评论

# re: Begin1 - Unit0 - a+b 2012-08-13 16:04 452

/*
ID: beta.
PROB: <Tyvj>Begin-Unit0-a+b
LANG: C++
*/
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<a+b;
return(0);
}  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航:   博客园   博客园最新博文   博问   管理


导航

统计

常用链接

留言簿

文章分类(1)

文章档案(1)

不解释.

名站

搜索

最新评论