码迷,mamicode.com
首页 >  
搜索关键字:times    ( 2480个结果
Codeforces Round #293 (Div. 2) D. Ilya and Escalator
先求出概率 设 $f_{i,j}$ 表示第 $i$ 秒电梯上有 $j$ 个人的概率 则 $f_{0,0}=1$ $f_{i + 1, j + 1} = f_{i, j} \times p$ $f_{i + 1, j} = f_{i, j} \times (1 p)$ $f_{i+1,n}=f_{i, ...
分类:其他好文   时间:2020-02-20 10:25:29    阅读次数:46
FJOI2017 矩阵填数
"题目" 给定一个 $h\times w$ 的矩阵,每个格子中将填入 $1$ 到 $m$ 中的某个整数。 一个合法的填数方案须满足 $n$ 条限制,每条限制形如“以 $(x_1,y_1)$ 为左上角,$(x_2,y_2)$ 为右下角的子矩阵中,最大值必须为 $v$”。 求填数方案数,对大质数取模。 ...
分类:其他好文   时间:2020-02-20 10:01:11    阅读次数:65
基础计算几何
模 $|(x,y)|=\sqrt{x^2+y^2}$ 点积 $(ax,ay) (bx,by)=ax bx+ay by$ 叉积 $(ax,ay)\times(bx,by)=ax by ay bx$ 夹角 $$表示从$\vec a$逆时针旋转到$\vec b$的角度。 $\cos=\frac{\vec ...
分类:其他好文   时间:2020-02-19 21:12:44    阅读次数:90
关键字mutable
1.突破 const 的限制 class Test { public: Test() = default; Test(unsigned int times):times(times){ } ~Test() = default; void printOut() const { cout << "out ...
分类:其他好文   时间:2020-02-19 21:08:27    阅读次数:79
P1303 A*B Problem(高精度乘法)
"P1303 A B Problem" 模拟就好了。$c_ {i+j} +=a_i \times b_j$.时间复杂度 $O(n m)$ ( "FFT版" 可以做到 $O((n+m)\log (n+m)$) ...
分类:其他好文   时间:2020-02-19 19:05:51    阅读次数:55
质数及其判法
目录 "目录地址" 什么是质数 数学家们希望用乘法表示所有的正整数 这时候,他们发现,有一些数字(假定为 $p$ ),它们只能用 $1\times p$ 的形式表示(不考虑负因数),其它不能写成任何别的形式 对于这种数字,他们称呼为 质数 ,或称呼为 素数 而换句话说,它们只能分解为 $1$ 乘上它 ...
分类:其他好文   时间:2020-02-19 13:08:46    阅读次数:75
【mysql】【springboot】启动报错Could not create connection to database server. Attempted reconnect 3 times. Giving up
原因是少了时区,加&serverTimezone=UTC jdbc:mysql://127.0.0.1:3306/my_test?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false&serverTimezon ...
分类:数据库   时间:2020-02-19 01:11:09    阅读次数:116
UVA 1408 Flight Control
https://vjudge.net/problem/UVA-1408 题目 有个很神奇的雷达,可以得到当前时刻$n\times m$格里面的飞机的能量。每个格子里面任何时间都只会有1架飞机。格子里面的能量反映了飞机的轨迹,飞机是按照能量递减的方向飞行的,只能沿着横向或纵向飞行,并且中途不能改变方向 ...
分类:其他好文   时间:2020-02-18 12:46:08    阅读次数:84
helm3.1安装及结合ceph rbd 部署harbor
[root@bs-k8s-ceph ~]# ceph -s cluster: id: 11880418-1a9a-4b55-a353-4b141e2199d8 health: HEALTH_WARN Long heartbeat ping times on back interface seen, ...
分类:其他好文   时间:2020-02-17 16:21:40    阅读次数:505
How to recover if NMC cound not connect
Some times we suddently find that the NMC can not login,. You would see the sybase database error if you try to find reason..Does it means difficult ? ...
分类:其他好文   时间:2020-02-16 20:45:49    阅读次数:99
2480条   上一页 1 ... 27 28 29 30 31 ... 248 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!