
ACM
文章平均质量分 80
nianiajr
http://www.liangjiarui.com/
展开
-
线段树-动态查询区间最大和
// LA3938 Ray, Pass me the dishes! // Rujia Liu #include #include #include using namespace std; const int maxn = 500000 + 10; const int maxnode = 1000000 + 10; typedef long long LL; typed翻译 2013-08-19 21:47:18 · 828 阅读 · 0 评论 -
Travel by Bike
这是长沙网络赛水题了,上完课回来做的,思路是把日期移动到以星期1开始,然后以七天路程为一个周期长度,进行计算,开始想得太过简单直接超时了,按这样改了之后就A了。 #include #include const double eps=1e-8; int dlcmp (double x) {return xeps;} int main(){ char ch[20]; doub原创 2013-09-23 10:36:48 · 850 阅读 · 0 评论 -
poj1191-棋盘分割问题
这个题想了一会没什么思路,就去搜了别人的解题思路,看了好几个,感觉这个作者的处理很巧妙http://blog.youkuaiyun.com/yihuikang/article/details/7770656,看完以后自己写了一遍,其中记录棋盘和的那个二维数组真的很赞,以及后面的更新再次利用了二维数组,同时棋盘的划分也是很合理,学习了~ #include #include #include #include原创 2014-01-21 00:39:33 · 884 阅读 · 0 评论