HUST 1001 Another A+B
2013-05-27 18:33
363 查看
http://acm.hust.edu.cn/problem.php?id=1001
For each line, there is an Integer a.
#include<iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
cout<<n<<" 0"<<endl;
}
Another A+B
Description
Give you an integer a, you are to find two another integers which sum is a.Input
Multiply Cases.For each line, there is an Integer a.
Output
For each test case, you should two Integers b and c, and b+c=a in each line.Sample Input
10 11
Sample Output
1 9 3 8
#include<iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
cout<<n<<" 0"<<endl;
}
相关文章推荐
- HUST 1374 Just Another Game
- 1001 - Another A+B
- 1001 - Another A+B
- 1001 - Another A+B
- 2016多校联合训练赛 第四场1001 Another Meaning hdu 5763
- 2016 Multi-University Training Contest 2 1001 Acperience (简单数学)
- CodeForces 165C - Another Problem on Strings
- CSU 1000/1001/1002 A+B问题
- HDU 4596 Yet another end of the world (数学,扩展欧几里德)
- 1001. 害死人不偿命的(3n+1)猜想 (15)
- Best Coder #86 1001 Price List(大水题)
- UVA 1001 Say Cheese
- 2016中国大学生程序设计竞赛 - 网络选拔赛 1001 A water problem hdu5832
- Another Great Rss Reader "NewsGator"
- POJ 1001 Exponentiation 大数乘法模拟
- Software factory, another buzz word?
- codevs1001 舒适的路线
- copy the content of a file to another file.
- 1001. 害死人不偿命的(3n+1)猜想 (15)
- 本来想水Pku1001的,想不到被题目水了!