题目地址:http://poj.org/problem?id=3175
思路: 若x.123....这个数字的平方是一个整数的话,那必然,sqr(x.124)>ceil(sqr(x.123))[ceil向上取整]。所以,可以从小到大枚举它的整数部分x,遇到的第一个满足结果的x,即为答案。
#include
#include
#include
#include
#include
usin...
分类:
其他好文 时间:
2016-08-01 19:42:17
阅读次数:
311
虽然没什么卵用,但还是要写,不然怎么毕业。 看资料的时候,从 Information-Centric Networking: Seeing the Forest for the Trees 跳到了 Finding a needle in Haystack: Facebook’s photo stor ...
分类:
其他好文 时间:
2016-07-25 16:16:53
阅读次数:
164
Description There are n cities in Bearland, numbered 1 through n. Cities are arranged in one long row. The distance between cities i and j is equal to ...
分类:
其他好文 时间:
2016-07-11 10:31:16
阅读次数:
183
Nginx's architecture The HTTP core module The server Logging Finding files Name resolution Client interaction Using limits to prevent abuse Restrictin ...
分类:
Web程序 时间:
2016-07-10 16:39:00
阅读次数:
192
Case Studies: Finding Similar DocumentsLearning Outcomes: By the end of this course, you will be able to:(通过本章的学习,你将掌握) -Create a document retrieval s ...
分类:
系统相关 时间:
2016-07-10 15:15:55
阅读次数:
204
rank finding 问题的概述如下: 在一群离散的点中,检查对于每个点,是否有x值和y值都小于它的点,若有,则该点的秩为这些小于它的点的数量。 分治法思想: 以界面上所有点中x值的中位数为基准,递归地把目标区域分成两部分,直到每个区域中的点在一个以下,对于每一个细小的区域,检查其left ch ...
分类:
其他好文 时间:
2016-07-08 21:50:25
阅读次数:
345
To see which hardware codecs have been enabled, use “vcgencmd codec_enabled CODECNAME” whereCODECNAME is one of H264, MPG2, WVC1, MPG4, MJPG, or WMV9. ...
分类:
Web程序 时间:
2016-06-14 19:19:13
阅读次数:
190
A Bear and Five Cards 贪心
B Bear and Finding Criminals 枚举
C Bear and Prime 100 数论
D Bear and Tower of Cubes 贪心
E Bear and Square Grid Sliding-window Technique...
分类:
其他好文 时间:
2016-06-12 02:30:49
阅读次数:
253
什么是luaprofiler? http://luaprofiler.luaforge.net/manual.html LuaProfiler is a time profiler designed to help finding bottlenecks on your Lua program. I... ...
分类:
其他好文 时间:
2016-06-11 22:48:31
阅读次数:
566
题目链接: B. Bear and Finding Criminals ...
分类:
其他好文 时间:
2016-06-09 12:14:08
阅读次数:
413