- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 hdu 5017 Ellipsoid 模拟退火算法模板
//109MS 304K#include #include #include #include using namespace std;const double EPS = 1e-9;const double INF = 1e18;const double dx[8] = {1.0, 1.0, 0.0, -1.0, -1.0, -1.0, 0.0, 1.0};const dou
2014-09-24 19:55:31 523
原创 hdu 5017 Ellipsoid 模拟退火算法 西安网络赛
Given a 3-dimension ellipsoid(椭球面)your task is to find the minimal distance between the original point (0,0,0) and points on the ellipsoid. The distance between two points (x1,y1,z1) and (x2,y2,
2014-09-24 13:13:51 818
原创 hdu 5023 A Corrupt Mayor's Performance Art 广州网络赛 线段树的区间覆盖+种类查询
Problem DescriptionThe wall was divided into N segments and the width of each segment was one cun(cun is a Chinese length unit). All segments were numbered from 1 to N, from left to right. There w
2014-09-24 10:57:27 430
原创 Line.h
#ifndef LINE_H_INCLUDED#define LINE_H_INCLUDED//#define Point Vectorstruct Line { Point P; Vector V; //直线的点向式表示 Line(Point P, Vector V) : P(P), V(V) {} Point intersectionOfTwoLin
2014-09-16 17:16:00 524
原创 Vector.h
#ifndef VECTOR_H_INCLUDED#define VECTOR_H_INCLUDEDconst double EPS = 1e-10;struct Vector { double x, y; Point(double x = 0, double y = 0) : x(x), y(y) {} Vector operator +(Vector A,
2014-09-16 16:07:25 627
原创 51单片机C语言开发之花样流水灯程序
#include typedef unsigned char uchar;typedef unsigned int uint; //int是16位的sbit ADDR0 = P1^0;sbit ADDR1 = P1^1;sbit ADDR2 = P1^2;sbit ADDR3 = P1^3;sbit ENLED = P1^4;void main(){ uchar i;
2014-09-10 20:44:48 8684
原创 zoj 3818 Pretty Poem
//AC#include #include #include #include #include using namespace std;char ch[55];string str;int len;void work(){ for(int i=1; 3*i+2<=len; i++){ if((len-3*i) % 2 != 0) continue
2014-09-09 17:34:59 359
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人