摘要: http://codeforces.com/contest/361/problem/B 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n,k; 7 8 int main() 9 {10 while(s... 阅读全文
posted @ 2014-08-27 20:57 null1019 阅读(144) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/359/problem/E题意:要关掉所有房间的灯,一个步骤要么开灯,要么关灯,要么向有灯的方向前进一格。输出一种关掉所有灯的方案。不能关掉所有灯输出NO往前搜索时点灯,后退时关灯。 1 #include 2 #include 3 #i... 阅读全文
posted @ 2014-08-27 16:56 null1019 阅读(164) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/359/problem/D题意:给你n个数,然后找出在[l,r]中有一个数a[j],l 2 #include 3 #include 4 #define maxn 300100 5 using namespace std; 6 7 in... 阅读全文
posted @ 2014-08-27 09:23 null1019 阅读(149) 评论(0) 推荐(0) 编辑