文件名称:2038
-
所属分类:
- 标签属性:
- 上传时间:2018-04-16
-
文件大小:256kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的找袜子过程,于是他决定听天由命……
具体来说,小Z把这N只袜子从1到N编号,然后从编号L到R(L 尽管小Z并不在意两只袜子是不是完整的一双,甚至不在意两只袜子是否一左一右,他却很在意袜子的颜色,毕竟穿两只不同色的袜子会很尴尬。
你的任务便是告诉小Z,他有多大的概率抽到两只颜色相同的袜子。当然,小Z希望这个概率尽量高,所以他可能会询问多个(L,R)以方便自己选择。(As a loose person, little Z spend a lot of time in the morning to find a pair of clothes from a pile of colorful socks. Finally, one day, little Z could no longer bear this annoying process of finding socks, so he decided to listen to his fate.
Specifically, the little Z numbered the N socks from 1 to N, and then from the number L to the R (L although the small Z doesn't care whether the two socks are a complete pair or even if the two socks are left or right, he is very concerned with the color of the socks, after all, wearing two different colors will be embarrassing. "
Your task is to tell little Z how much he can draw two socks of the same color. Of course, small Z expects this probability to be as high as possible, so he may ask multiple L (R) to make her own choice.)
具体来说,小Z把这N只袜子从1到N编号,然后从编号L到R(L 尽管小Z并不在意两只袜子是不是完整的一双,甚至不在意两只袜子是否一左一右,他却很在意袜子的颜色,毕竟穿两只不同色的袜子会很尴尬。
你的任务便是告诉小Z,他有多大的概率抽到两只颜色相同的袜子。当然,小Z希望这个概率尽量高,所以他可能会询问多个(L,R)以方便自己选择。(As a loose person, little Z spend a lot of time in the morning to find a pair of clothes from a pile of colorful socks. Finally, one day, little Z could no longer bear this annoying process of finding socks, so he decided to listen to his fate.
Specifically, the little Z numbered the N socks from 1 to N, and then from the number L to the R (L although the small Z doesn't care whether the two socks are a complete pair or even if the two socks are left or right, he is very concerned with the color of the socks, after all, wearing two different colors will be embarrassing. "
Your task is to tell little Z how much he can draw two socks of the same color. Of course, small Z expects this probability to be as high as possible, so he may ask multiple L (R) to make her own choice.)
相关搜索: BZOJ 2038
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
2038\2038.cbp | 1097 | 2016-05-15 |
2038\2038.depend | 97 | 2016-05-15 |
2038\2038.layout | 321 | 2016-05-15 |
2038\bin\Debug\2038.exe | 1069560 | 2016-05-15 |
2038\main.cpp | 312 | 2016-05-15 |
2038\obj\Debug\main.o | 170391 | 2016-05-15 |
2038\bin\Debug | 0 | 2016-05-15 |
2038\obj\Debug | 0 | 2016-05-15 |
2038\bin | 0 | 2016-05-15 |
2038\obj | 0 | 2016-05-15 |
2038 | 0 | 2016-05-15 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.