Websites are getting more and more complex everyday and there are almost no static websites being built.Today, the simplest website has at least a con...
分类:
Web程序 时间:
2014-12-29 21:20:45
阅读次数:
305
理论就不讲了,我感觉只有亲自敲代码,才能感觉到代码的神奇。代码:#!/usr/pin/envpythondefdisplayNumType(num):printnum,‘is‘,ifisinstance(num,(int,long,float,complex)):print‘anumberoftype:‘,type(num).__name__else:print‘notanumberatall!‘displayNumType(68)display..
分类:
编程语言 时间:
2014-12-26 18:54:26
阅读次数:
242
贴个渣模板
CODE:
#include
#include
#include
#include
#include
#define MAX 140010
#define PI 3.1415926535897932384626
using namespace std;
struct Complex{
double real,imag;
Complex(double ...
分类:
其他好文 时间:
2014-12-26 11:13:29
阅读次数:
216
渣模板,不知为何常数还挺大。。
CODE:
#include
#include
#include
#include
#include
#define MAX 200010
#define PI 3.1415926535897932384626
using namespace std;
struct Complex{
double real,imag;
Compl...
分类:
其他好文 时间:
2014-12-26 11:13:24
阅读次数:
155
作死去学了FFT。。。
系统自带的complex真是慢。。。比手写的慢了整整0.8s。。。于是果断手写了一发Complex的模板。。。。
原型:
templateclass Complex;
使用方法:
using namespace PoPoQQQ_Complex;
Complex x;cin>>x;
x+=Complex(1,0);
x-=Complex(0,1);
x*=C...
分类:
其他好文 时间:
2014-12-25 14:41:50
阅读次数:
195
题目大意:给定两个高精度整数,求两个数的乘积
FFT大法好
系统的complex比手写慢了2.5倍 简直吓死人- -
#include
#include
#include
#include
#include
#define M 131080
#define PI 3.1415926535897932384626433832795028841971
using namespace s...
分类:
其他好文 时间:
2014-12-25 14:40:21
阅读次数:
178
第一关:1.help2.password3.login4.brucedayton第二关:1.help2.ls3.cat password.txt4.login5.allomoto第三关:1.help2.ls3.sudo cat password4.login5.m3g4pa55word第四关:1.h...
分类:
其他好文 时间:
2014-12-17 20:25:37
阅读次数:
205
Complex.h 1 #pragma once 2 #include 3 4 using namespace std; 5 //表示一个复数 6 class Complex 7 { 8 private: 9 double x, y;10 public:11 Complex();...
分类:
编程语言 时间:
2014-12-12 23:28:32
阅读次数:
275
http://www.cnblogs.com/BeginMan/p/3160044.html工厂函数:实质上它们是类,当你在调用它们时,实际上生成了该类的一个实例,就像工厂生产货物一样(20个)int()、long()、float()、complex()、str()、unicode()、basest...
分类:
编程语言 时间:
2014-12-12 16:25:51
阅读次数:
167
#数字分为证书Integer,浮点数Float(对应与其他语言中的double),和复数Complex#整数又分为Fixnum和Bignum,Fixnum和Bignum会互相转换,这些都是ruby自动管理的操作。a=123_333_3432#加入下划线不会影响数字的值puts aputs 0b000...
分类:
其他好文 时间:
2014-12-11 18:44:52
阅读次数:
184