题目链接:http://poj.org/problem?id=3020题目意思:首先,请忽略那幅有可能误导他人成分的截图(可能我悟性差,反正有一点点误导我了)。 给出一幅 h * w 的图, “ * ” 表示 point of interest,“ o ” 忽略之。你可以对 " * " (假设这.....
分类:
其他好文 时间:
2014-08-18 23:28:03
阅读次数:
287
题目链接:uva 1549 - Lattice Point
题目大意:给定圆半径,以原点为圆心,求园内有多少个整数点。
解题思路:首先坐标轴将圆分成4份,所以只要单独考虑每一块的个数乘4再加1即可(原点)
#include
#include
#include
#include
using namespace std;
const double pi = 4 * atan(1...
分类:
其他好文 时间:
2014-08-18 20:33:52
阅读次数:
206
先上图:关键是在检測到手指移动的时候用mPath.quadTo的方法,android sdk解释是:Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2)...
分类:
移动开发 时间:
2014-08-18 15:57:42
阅读次数:
304
1. if __name__ == "__main__"Term:模块最高级的代码:模块中没有缩进的代码Principal 1:第一次导入模块会执行模块最高级的代码。不管你是否需要,这就是python 导入的行为。提醒,只有属于模块最高级的代码才是全局变量,全局类,和全局函数声明Principal ...
分类:
其他好文 时间:
2014-08-18 12:01:24
阅读次数:
217
头文件
/**
* 功能:下推栈(push_down stack)不会越出内存
* 时间:2014年8月18日08:13:36
* 作者:cutter_point
*/
#ifndef STACK_H_INCLUDED
#define STACK_H_INCLUDED
struct Stack
{
struct Link
{
void* data; //这个结构...
分类:
编程语言 时间:
2014-08-18 09:18:33
阅读次数:
326
/**
* 功能:用sizeof运算符可以确定struct的长度。
* 时间:2014年8月18日08:10:14
* 作者:cutter_point
*/
#include"CLib.h"
#include"CppLib.h"
#include
using namespace std;
struct A
{
int i[100];
};
struct B
{
void f...
分类:
编程语言 时间:
2014-08-18 09:18:23
阅读次数:
204
#include#include#include#include#include#define eps 1e-7using namespace std;struct Point{ double x,y; Point(){} Point(double x,double y):x(x)...
分类:
其他好文 时间:
2014-08-17 16:55:42
阅读次数:
223
#include #include #include #include #include using namespace std;const double eps = 1e-6;const int MAXN = 100010;const double INF = 1e20;struct Point{...
分类:
其他好文 时间:
2014-08-17 14:18:12
阅读次数:
168
汉澳sinox2014并不支持所有的硬件,为了得到最佳体验,推荐购置新机子的配置
CPU 英特尔 Xeon E3-1230 V2 (四核) //实际上是八核心
主板 华硕 B75M-PLUS (Intel B75 (Panther Point-M Enahnced)) //内置网卡声卡
内存 32 GBytes //海盗船内存条,8G估计够了
显卡 NVIDIA(英伟达) GeForce...
分类:
其他好文 时间:
2014-08-17 09:11:21
阅读次数:
327
题目:
You are given a binary tree with unique integer values on each node. However, the child pointers on each node may point to any other node in the tree including itself, introducing cycles into the...
分类:
其他好文 时间:
2014-08-17 09:11:11
阅读次数:
301