
概率
键盘里敲打出的巨人
这个时代带给我太多太多,我也要回馈这个时代!!
展开
-
J - Just Random HDU - 4790 (几何概率,数形结合)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4790 Coach Pang and Uncle Yang both love numbers. Every morning they play a game with number together. In each game the following will be done: 1. Co...原创 2019-10-19 17:31:36 · 169 阅读 · 0 评论 -
几何概率
题目:https://cn.vjudge.net/problem/UVA-11722 巧妙利用几何概型,把所有可能情况看成一个二维矩形 (t0<=x<=t1, s0<=y<=s1); 然后求面积求占比即可。。 ac代码: #include <cstdio> #include <math.h> #include <algorithm> #i...原创 2019-10-14 15:30:27 · 633 阅读 · 0 评论