摘要: 链接:https://www.nowcoder.com/acm/contest/107/D来源:牛客网题目描述现在有n个数,每次随机取出两个数x,y,然后加入一个数为(x+y)/2,问最后剩下的那个数的期望是多少?输入描述:有多组输入数据,第一行为一个数字T,代表有T... 阅读全文
posted @ 2018-04-23 18:48 断腿三郎 阅读(137) 评论(0) 推荐(0)
摘要: http://noi.openjudge.cn/ch0206/162/总时间限制: 1000ms内存限制: 65536kB描述There is a straight highway with villages alongside the highway. The hi... 阅读全文
posted @ 2018-04-17 13:45 断腿三郎 阅读(259) 评论(0) 推荐(0)
摘要: w:表示每件物品的质量v:表示每件物品的价值n:一共有4件物品m:背包的容量是5公式是挑战上的公式,相信我,自己推一遍就明白了. 阅读全文
posted @ 2018-04-17 12:01 断腿三郎 阅读(110) 评论(0) 推荐(0)
摘要: http://codeforces.com/contest/962/problem/EE. Byteland, Berland and Disputed Citiestime limit per test2 secondsmemory limit per test25... 阅读全文
posted @ 2018-04-12 22:05 断腿三郎 阅读(191) 评论(0) 推荐(0)
摘要: http://codeforces.com/contest/962/problem/DD. Merge Equalstime limit per test2 secondsmemory limit per test256 megabytesinputstandard ... 阅读全文
posted @ 2018-04-12 12:39 断腿三郎 阅读(119) 评论(0) 推荐(0)
摘要: 1.noi 1759:最长上升子序列http://noi.openjudge.cn/ch0206/1759/ 阅读全文
posted @ 2018-04-11 09:12 断腿三郎 阅读(123) 评论(0) 推荐(0)
摘要: http://noi.openjudge.cn/ch0206/90/90:滑雪总时间限制: 1000ms内存限制: 65536kB描述Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡... 阅读全文
posted @ 2018-04-08 21:48 断腿三郎 阅读(272) 评论(0) 推荐(0)
摘要: http://noi.openjudge.cn/ch0113/44/总时间限制: 1000ms内存限制: 65536kB描述将 p 进制 n 转换为 q 进制。p 和 q 的取值范围为[2,36],其中,用到的数码按从小到大依次为:0,1,2,3,4,5,6,7,8,... 阅读全文
posted @ 2018-04-06 17:00 断腿三郎 阅读(558) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1875 畅通工程再续 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission 阅读全文
posted @ 2018-04-06 15:02 断腿三郎 阅读(105) 评论(0) 推荐(0)
摘要: 链接:https://www.nowcoder.com/acm/contest/93/L来源:牛客网时间限制:C/C++ 3秒,其他语言6秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述你们wyh学长小时... 阅读全文
posted @ 2018-04-06 13:58 断腿三郎 阅读(171) 评论(0) 推荐(0)