POJ 2521
2015-06-11 11:08
169 查看
#include <iostream> #include <stdio.h> using namespace std; int main() { //freopen("acm.acm","r",stdin); int a; int b; int c; int d; int ans; do { cin>>a>>b>>c>>d; if(!a&&!b&&!c&&!d) { break; } ans = (b - c - a)*(-1); cout<<ans<<endl; } while(1); }
相关文章推荐
- POJ 2505
- XenServer日志空间占满,清理方法
- java学习之MVC模型
- c++STL的迭代器
- httpurlconnection get String
- VS2013MFC单文档工程学习笔记四 - 动态创建多个控件
- C语言详解 - 枚举类型
- iOS-自定义Navigation左侧的leftBarButtonItem
- Linux下安装firefox最新版
- POJ 2509
- 判断Android程序是否在前台运行的两种方法
- 解决在Azure SharePoint 2013 “在为项或数据源“FirstRSDS.rsds”加载模型时出现错误。请确认连接信息正确并且您有权访问该数据源。”
- 简介JavaScript中的setDate()方法的使用
- SQL2000错误用户已经存在
- Android自动化测试总结
- Andorid--Apache HttpClient(二)
- iOS中对时间的处理(一)——获取当前时间戳
- Leetcode Problem.—Rotate List C++实现
- 10链表追赶问题
- TCP之深入浅出send和recv