原poj 2808校门外的树(水)
来源:互联网 发布:淘宝怎么没有花呗付款 编辑:程序博客网 时间:2024/05/19 09:49
难道重定向是引起WA的原因!???!!!!?
#include <iostream>using namespace std;//全局数据int main(){bool trees[10001] ;for (int i = 0 ; i < 10000 ; ++i)trees[i] = true ;int L ;int M ;int startpos ;int finalpos ;cin >> L ;cin >> M ;while (M--){cin >> startpos ;cin >> finalpos ;for (int j = startpos ; j <= finalpos ; ++j )trees[j] = false ;}int cnt = 0 ;for (int num = 0 ; num <= L ; ++num)if (trees[num])++cnt;cout<<cnt<<endl; return 0 ;}
- 原poj 2808校门外的树(水)
- 水题解题报告01---校门外的树(POJ原2808)
- POJ 2808:校门外的树
- POJ 2808 校门外的树
- POJ 2808 校门外的树
- poj 2808题校门外的树(java)
- POJ校门外的树
- POJ 百练 2808: 校门外的树
- 百炼POJ 2808 校门外的树
- poj 百练 2808:校门外的树
- poj 百练 2808 校门外的树
- 2808 校门外的树
- 2808:校门外的树
- 校门外的树
- 校门外的树
- 校门外的树
- 校门外的树
- 校门外的树
- wp7读取项目生成的资源(Resource)文件
- Oracle SQL 面试题
- 原:PHP数组函数研究:is_null,is_object,is_array,is_string,is_resource等
- Java环境配置
- android Motion Senor API 简介
- 原poj 2808校门外的树(水)
- 给学计算机的表弟几点建议
- 网址大全
- 读书列表
- PHP内核函数研究之 intval
- Jetty 的工作原理以及与 Tomcat 的比较 Jetty下载地址
- 辅助类之读取Properties文件封装类
- 上海老大杜月笙——教你看穿一个人...
- Spring面试题大全