poj 2665
来源:互联网 发布:外国人评价中国的淘宝 编辑:程序博客网 时间:2024/06/05 05:55
//poj 2665 小学生题 种树题 #include <iostream>#include <algorithm>#include <math.h>#include <string> using namespace std;int main(){int n, m;cin>>n;cin>>m;while( n != 0 && m != 0){int start, end;n = n+1;for(int i = 0; i < m; i++){cin>>start>>end;n -= (end - start + 1);}cout<<n<<endl;cin>>n;cin>>m;}return 0;}
0 0
- poj 2665
- poj 2665
- POJ-2665
- POJ 2665 Trees
- POJ 2665 水题
- POJ 2665 Trees
- poj 2665 Trees
- POJ 2665 Trees 水
- POJ 2665 模拟,,
- POJ 2665 Trees G++
- POJ
- poj
- POJ
- POJ
- poj
- poj
- POJ
- POJ
- Poj2656
- 关于组合数求法的简单记录
- IPtable 工作原理
- 鑫隆小额贷款 可信吗?加(604300932)了解
- 记录4--fedora下配置samba
- poj 2665
- SVN中的Branches分支以及Tags标签详解与应用举例
- 华利小额贷款 可信吗?加(604300932)了解
- hdu 4782 模拟
- 移动互联网营销平台招商
- Swift教程_swift常见问题(0003)_storyboard修改不生效
- 德盛行小额贷款 可信吗?加(604300932)了解
- UVA 10878
- iOS7下隐藏status bar的详细研究