码迷,mamicode.com
首页 >  
搜索关键字:double    ( 12800个结果
Codeforces 453A Little Pony and Expected Maximum 概率题Orz
题目链接:点击打开链接 #include #include #include using namespace std; #define INF 0x3f3f3f3f #define eps 1e-8 #define pi acos(-1.0) typedef long long ll; int main() { int i, j; double m,n; while...
分类:其他好文   时间:2014-08-02 18:20:43    阅读次数:233
ceil round floor
ceil 是“天花板” floor 是 “地板” 一个靠上取值,另一个靠下取值,如同天花板,地板。double floor(double x);double ceil(double x);使用floor函数。floor(x)返回的是小于或等于x的最大整数。 如: floor(10.5) == 10f...
分类:其他好文   时间:2014-08-02 17:56:03    阅读次数:154
Armadillo之行向量(row vector)
1 行向量类:定义Row<type> 2 常用的typedef rowvec?=?Row<double> frowvec?=?Row<float> cx_rowvec?=?Row<cx_double> cx_frowvec?=?Row<cx_float> urowvec?=?Row<uword> irowvec?=?Row<sword> 3 创建...
分类:其他好文   时间:2014-08-02 15:44:43    阅读次数:730
printf()多参数实现机制
摘要:一直以来都觉得printf似乎是c语言库中功能最强大的函数之一,不仅因为它能格式化输出,更在于它的参数个数没有限制,要几个就给几个,来者不拒。printf这种对参数个数和参数类型的强大适应性,让人产生了对它进行探索的浓厚兴趣。 关键字:printf, 可变参数 1. 使用情形 int a =10; double b = 20.0; char *str = "Hello wo...
分类:其他好文   时间:2014-08-02 15:30:33    阅读次数:513
xtu summer individual 2 E - Double Profiles
Double ProfilesTime Limit: 3000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:154C64-bit integer IO format:%I64d Java c...
分类:其他好文   时间:2014-08-02 12:34:23    阅读次数:197
C++里面的取整函数
#include double ceil(double x) //向上取整 double floor(double x) //向下取整 也能够用数据类型强制转换,那要看数据的大小 能够用int()或long() 比方int(10...
分类:编程语言   时间:2014-08-02 12:26:33    阅读次数:209
Unity3D使用Litjson序列化
var jsonStr = JsonMapper.ToJson(tmpType);var tmpObject = JsonMapper.ToObject(jsonStr);序列化和反序列化。需要注意float类型要转换成double类型,否则会出错。序列化对私有成员似乎无效,还是要全public出来...
分类:Web程序   时间:2014-08-02 01:45:52    阅读次数:214
ZOJ 1450
最小圆覆盖#include #include #include #include using namespace std;const double eps=0.00000001;struct point { double x,y;}p[110];struct circle{ point cent; ...
分类:其他好文   时间:2014-08-02 01:30:52    阅读次数:230
zju 1763
#include #include using namespace std;int main(int argc, char *argv[]){ double a,b; cin>>a; while (cin>>b) { if (b==999) { ...
分类:其他好文   时间:2014-08-02 01:27:12    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!