From Wikipedia, the free encyclopediaJump to: navigation, searchLotus L
转载 2007-12-17 10:23:00
209阅读
题目题意:给出n个车牌号、个值。注意:一个车可能出入校园好多次,停车的时间应该取之和。tip:map+排序+状态记录#inc...
原创 2023-06-27 10:23:15
79阅读
描述:要么全选择牛,要么选择一辆车和p-1头牛,那么剩下n+m-p道门可以选择,求选择p道门以后要选择到车的概率#include int main(){ //freopen("in.txt","r",stdin); int m,n,p; while(scanf("%d%d%d",&m,&n,&p)!=EOF) { printf("%.5lf\n",(n*m*1.0+(n-1)*n*1.0)/(m+n)/(m+n-p-1)); } return 0;} Read More
转载 2013-07-22 19:23:00
37阅读
2评论
洛谷 P2909 [USACO08OPEN]牛的车Cow Cars https://www.luogu.org/problemnew/show/P2909 JDOJ 2584: USACO 2008 Open Silver 3.Cow Cars https://neooj.com:8082/oldo
转载 2019-07-17 11:22:00
77阅读
2评论
https://vjudge.net/problem/UVA-10491 题意: a头牛,b辆车,每扇门后面都有一头牛或一辆车 开始选手选择一扇门 然后主持人打开c扇有牛的门(选中的除外) 然后选手换一扇门 问最后选手选的门后面是车的概率 开始选牛的概率: 牛/总 又换到车的概率: 车/(总-c-1
原创 2021-08-05 10:51:41
42阅读
題目:有m+n個們,每個門後面有牛或者車;有n仅仅牛,m輛車,你選擇当中1個; 然後打開当中的k你沒有選中的門後是牛的,問你改變選時得到車的概率。說明:數學題,概率。全概率公式就可以: 說明:第1001了O(∩_∩)O~#include int main(){ int cow,c...
转载 2015-03-29 20:14:00
63阅读
2评论
Introduced by Jonathan Krause et al. in 3D Object Representations for Fine-Grained CategorizationThe Stanford Cars dataset consists of 196 classes of cars with a total of 16,185 images,
转载 2023-05-12 07:49:44
304阅读
输入N个车辆进出记录 K个要查询的时间点N行 车牌 时间(00:00:00~23:59:59) 进in/出out……K行 查询的时间(对应输出这个时间点停车场的车辆数。这个时间点如果正好有车有操作,那么车辆数是操作后的 【进+1/出-1/无0】)……最后给出一天中累计停放的时间最长的车牌号(多个按字母序输出) 并输出这个最长时间PS:由于K行的查询是按时间顺序进行的,那么可以直接从头搜到尾。也可以用统计放到数组里面再用二分法,测试出来的时间差不多,内存有点区别。但是如果全部用ci
原创 2022-11-25 11:14:45
63阅读
Smart devices are becoming increasingly common in modern cars, and they can provide several benefits for drivers. However, whether or not cars need sm
原创 2023-12-26 16:57:46
72阅读
1095 Cars on Campus (30 point(s))Zhejiang University has 8 campuses and a lot of gates. From
原创 2022-09-15 10:59:32
67阅读
带模拟。 题意 给出N条记录,每条记录给出一辆车的车牌号、当前时刻以及出入校情况(入校(in)还是出校(out))。然后给出K个查询,每个查询给出一个时刻,输出在这个时刻校园内的车辆数。 查询完毕后输出在学校内停留时间最长的车辆的车牌号(如果有多个,就一并输出)和对应的停留时间。 注意: 每个 in
转载 2021-02-17 10:05:00
72阅读
返回目录题意给出N条记录,每条记录给出一辆车的车牌号、 当前时刻以及出入校情况(入校(in)还是出校(o
原创 2022-07-14 17:45:23
30阅读
Zhejiang University has 8 campuses(校区) and a lot of gates(大门). From each gate we can collect the in/out times and the plate
原创 2022-05-25 17:50:55
74阅读
数学问题 概率
转载 2016-09-22 15:06:00
85阅读
2评论
点击打开链接A. Toy Carstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Susie, thanks to her older
原创 2022-09-07 16:46:13
28阅读
题目大意:有N个门,其中M个门后面是牛,L个门后面是小汽车。现在要求选择其中一扇门,并看剩下的N-1个门中的K个门后面是什么。当K个门打开后,要求你放弃刚才选择的那扇门,从剩下的N-K-1个门中再选择一扇门进行打开,如果门后面是车的话,就算赢了,问赢的概率有多大 解题思路:分两种情况 1.刚开始选中的门后面是牛,概率为M/N,然后在剩下的门再选择一扇门,这扇门后面是车的概率是L/N-K-1,所
原创 2023-04-07 10:42:05
37阅读
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g
转载 2018-07-10 22:36:00
113阅读
题目大意:给出a,b和c,表示有a + b 个门, a个后面是牛, b个后面是车, 然后你从中选一个门,之后有一个知情人帮你打开c个后面是牛的门(因为1≤c解题思路:问题可以分成两种情况:1)第一次选中牛的时候,a/(a + b), 然后打开c个后面是牛的门,总关门数为(a + b  - c - 1),然后还有b个门后面是车,所以p1 = a * b / (a + b)
原创 2022-08-05 15:43:21
26阅读
A1095Cars on CampusZhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with all the inform...
原创 2021-07-09 15:04:53
48阅读
按照题目的去推就好了 两种情况 1、第一次选择奶牛的门 概率是 a/(a+b) 打开c扇门后 除去选择的门 还剩 a-1-c+b扇门 则选到车的概率为b/(a-1-c+b) 2、第一次选择车的门 概率是b/(a+b) 打开c扇门后 除去选择的门 还剩 a-c+b-1扇门 则再次选择选到车的概率为(b
转载 2018-07-23 11:01:00
105阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5