您的位置:首页 > 其它

1001 - Another A+B

2015-06-03 01:07 253 查看

1001 - Another A+B

Description

Give you an integer a, you are to find two another integers which sum is a.InputMultiply Cases. For each line, there is an Integer a.OutputFor 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<stdio.h>
#include<string.h>
int main()
{
int a;
int b,c;
b = 1;
while(scanf("%d",&a) != EOF){
printf("%d %d\n",b,a-1);
}
}
别问我为什么
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: