https://vjudge.net/problem/POJ-2456 二分,从最大长度开始,不断折半试,如果牛全放下了,就是可行,修改下界,否则改上届。 ...
分类:
其他好文 时间:
2018-05-12 11:12:41
阅读次数:
166
题目大意 假设有a头牛,b辆车(门的总数为a+b),你先选一个门,然后你最终选择前主持人会替你打开C扇有牛的门(不会打开你已经选择的门),问你要不要换门,输出“总是换门”的策略下,赢得车的概率。 分析 很明显这一题有两种情况。 (设事件A为得到了车,B为一开始选择牛门,C为一开始选择车门) 第一种, ...
分类:
其他好文 时间:
2018-05-10 23:37:01
阅读次数:
158
Bad Hair Day Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 21084 Accepted: 7202 Description Some of Farmer John's N cows (1 ≤ N ≤ 80,000) ...
分类:
其他好文 时间:
2018-05-10 18:39:23
阅读次数:
186
You need to run configration manager, select sql server services->sql server(instance), right click and then select properties->tab startup paramters, ...
分类:
数据库 时间:
2018-05-10 15:47:33
阅读次数:
141
在用Navicat for MySQL远程连接mysql的时候,出现了 Lost connection to MySQL server at ‘reading initial communication packet', system error: 0 好恶心,服务器重启了一次,就一上午都是在处理m ...
分类:
数据库 时间:
2018-05-10 11:32:35
阅读次数:
407
1 //Dijkstra 2 #include 3 #include 4 #define Faster ios_base::sync_with_stdio(false),cin.tie(0) 5 #define Read freopen("in.txt","r",stdin),freopen("ou... ...
分类:
其他好文 时间:
2018-05-08 20:54:32
阅读次数:
161
今天看到的一篇文章,记录一下:https://github.com/ludx/The-Lost-Art-of-C-Structure-Packing 失传的C结构体打包技艺 作者:Eric S. Raymond 原文链接:http://www.catb.org/esr/structure-packi ...
分类:
其他好文 时间:
2018-05-08 19:33:47
阅读次数:
157
River Hopscotch Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 18125 Accepted: 7559 Description Every year the cows hold an event featurin ...
分类:
其他好文 时间:
2018-05-06 13:41:31
阅读次数:
154
描述 Alice bought a lot of pairs of socks yesterday. But when she went home, she found that she has lost one of them. Each sock has a name which contain ...
分类:
其他好文 时间:
2018-05-05 23:05:48
阅读次数:
198
描述 Alice bought a lot of pairs of socks yesterday. But when she went home, she found that she has lost one of them. Each sock has a name which contain ...
分类:
其他好文 时间:
2018-05-05 20:42:05
阅读次数:
202