![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
Mlong54
这个作者很懒,什么都没留下…
展开
-
杭电1251————字典树基础讲解
/*再次声明本文为转载原作者地址http://blog.csdn.net/u013548531/article/details/38896059转载 2014-10-23 10:36:50 · 1181 阅读 · 0 评论 -
HD1754-I Hate It 线段树基础
很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。本题目包含多组测试,请处理到文件结束。在每个测试的第一行,有两个正整数 N 和 M ( 0学生ID编号分别从1编到N。第二行包含N个整数,代表这N个原创 2014-10-28 19:58:56 · 694 阅读 · 0 评论 -
Stars -树状数组
Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher an原创 2014-11-06 21:28:02 · 543 阅读 · 0 评论 -
LeetCode-595 Big Countries
题目链接:595 Big Countries这是LeetCode通过率最高的一道题(70.5%),也从侧面说明了这道题的简单。 废话不多说,简单翻译一下题目: 给你一个数据库表(表名:World),然后查出area大于3000000或者population大于25000000,并且只显示name,population,area这三个字段这里说两种解法: 第一种解法就是常规的做法使用or,原创 2017-09-08 13:49:14 · 559 阅读 · 0 评论