1001

                                                                 

                             1001 - 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  
  
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. int a;
  6. int b,c;
  7. b = 1;
  8. while(scanf("%d",&a) != EOF){
  9. printf("%d %d ",b,a-1);
  10. }
  11. }
不要问我为什么
原文地址:https://www.cnblogs.com/mengfanrong/p/4560051.html