码迷,mamicode.com
首页 >  
搜索关键字:complex    ( 1359个结果
Const
//返回引用型,并不是因为要返回引用型而是因为参数是引用型?返回的是实例的引用。*this===实例。那为什么一定要引用型呢?减少编译器开辟临时变量的消耗Complex& Complex::operator =(const Complex& c){ a = c.getA(); b = c...
分类:其他好文   时间:2015-03-21 18:40:00    阅读次数:109
CF417D--- Cunning Gena(排序+状压dp)
A boy named Gena really wants to get to the “Russian Code Cup” finals, or at least get a t-shirt. But the offered problems are too complex, so he made an arrangement with his n friends that they will s...
分类:编程语言   时间:2015-03-16 14:36:02    阅读次数:141
COdeforces#417D Cunning Gena(状压DP)
A boy named Gena really wants to get to the "Russian Code Cup" finals, or at least get a t-shirt. But the offered problems are too complex, so he made an arrangement with his n friends that they wil...
分类:其他好文   时间:2015-03-15 23:05:06    阅读次数:277
hdu 1856 More is better(并查集)
题意:Mr Wang wants some boys to help him with a project. Because the project is rather complex,the more boys come, the better it will be. Of course ther...
分类:其他好文   时间:2015-03-13 12:08:05    阅读次数:103
计算几何入门之aizu两题 Projection Reflection
---恢复内容开始---使用complex类来写计算几何。第一题 传送门:题意给定一直线输入一个点求输入点到该直线射影交点的坐标:=p0到p2向量称为v2,p0到p1向量称为v1 易求得p0到t的向量为 (v2·v1)*(v1的方向向量) 。用复数表示每个点和每个向量,则将v1*(v2的共轭复数)得...
分类:其他好文   时间:2015-03-13 01:35:56    阅读次数:126
STL总结
Sequence containers Associative containers   Headers   Members complex vector deque list set multiset ...
分类:其他好文   时间:2015-03-12 17:14:18    阅读次数:125
实现cin>>complex
我以前的实现版本点击打开是是有问题的,因为我把整个流都弄下来了。 比如流里假如有(12, 3))87 ,实际上cin>>complex只是取流里的(12,3)而剩下的)87是不动它,由接下来的其他流读取。 而我则是整个都取下来了。虽然我的功能能够使用词法分析实现,但是不够优雅,在C++上更是错误的。 basic_istream_char* __cdecl basic_istream_...
分类:其他好文   时间:2015-03-11 17:22:34    阅读次数:173
uva 103 Stacking Boxes (DAG)
uva 103 Stacking BoxesBackgroundSome concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving dif...
分类:其他好文   时间:2015-03-10 21:29:49    阅读次数:211
cpp面向对象编程的简单实例 用于简单的复数
#include using namespace std;class Complex {public: Complex(int a,int b) {re=a;im=b;}; Complex (float a){ storea=a;}; void add(Complex p) { re+=...
分类:其他好文   时间:2015-03-09 23:45:31    阅读次数:174
Search in Rotated Sorted Array II
Search in Rotated Sorted Array II问题:Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complex...
分类:其他好文   时间:2015-03-08 16:51:35    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!