随笔分类 -  水题

摘要:Vasya is writing an operating system shell, and it should have commands for working with directories. To begin with, he decided to go with just two co 阅读全文
posted @ 2016-05-10 19:34 Alan2 阅读(250) 评论(0) 推荐(0)
摘要:上课不听课的结果就是讲过的题还要再看一遍,好坑,我觉得这道题思想很好,因为比线段树线段树对于我来说只能算是一个模板,所以发一下留作纪念。 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 using namespace std 阅读全文
posted @ 2016-03-26 22:32 Alan2 阅读(164) 评论(0) 推荐(0)
摘要:一道暴力的题,但暴力的过程中约束太多,必要的剪枝也太多了,所以我也不知道到底这道题属于什么了,不过这题还有状态压缩的做法,我会在下一篇博客上写(其实我看这道题本意是看状态压缩的) 题解全在代码的注释里了我就不再打一遍了。 1 #include<stdio.h> 2 #include<algorith 阅读全文
posted @ 2016-03-12 10:47 Alan2 阅读(366) 评论(0) 推荐(0)
摘要:水题,绝对水题,不过作为一个学C的人面对C++的这些东西还是忍不住发一下,这里用到的我不会的以后会发到博客上,由于题比较水,我就先不发题目了 代码如下:(朋友写的,已AC,好像比网上的简单啊) 1 #include <cstdio> 2 #include <map> 3 #include <stri 阅读全文
posted @ 2016-02-03 11:42 Alan2 阅读(204) 评论(0) 推荐(0)
摘要:B - Vika and Squares Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practi 阅读全文
posted @ 2016-01-30 18:00 Alan2 阅读(313) 评论(0) 推荐(0)
摘要:DescriptionFind the number of k-divisible numbers on the segment [a, b]. In other words you need to find the number of such integer values x that a ≤ ... 阅读全文
posted @ 2016-01-21 11:11 Alan2 阅读(200) 评论(0) 推荐(0)