1001 - Another A+B
2015-06-03 01:07
253 查看
1001 - Another A+B
DescriptionGive 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); } } 别问我为什么
相关文章推荐
- jquery 单行滚动、批量多行滚动、文字图片翻屏滚动效果代码
- JAVA中的反射机制
- List subList()
- 软件测试二八原则(软测之魂读后感)
- JS 同源策略
- Java private方法访问
- 使用PHP制作 简易员工管理系统之五(分页显示用户信息)
- WingStudio项目总结
- Java大数据
- 铁人系列(2)LA2218
- Java批处理
- jQuery noConflict() 方法
- 【linux用户管理】CentOS用户管理基础
- 【linux用户管理】CentOS用户管理基础
- Weyl不等式
- RHEL7 (134) SELINUX
- RHEL7 (134) 管理进程优先级
- 学院网站设计大赛总结
- BP算法权重求导
- 使用 WPF+ ASP.NET MVC 开发 在线客服系统 (一)