Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Map Generator
Description The scene of the new computer game “Battles in Space: Unification” ( Special Currently, developers of X_{ij}_{ }≤ 1) is generated. Uniform distribution is used to generate random numbers and numbers X are generated independently. Next, if _{ij}X≤ _{ij }P, where parameter P is a real number, then the hyperspace tunnel connecting planets i and j is added into the map being generated.Developers wish the map generator produced You need to write a program which being given numbers Input The input consists of two lines. The first line contains an integer number Output The output needs to contain an answer – the single real number which is the probability of generating Sample Input 3 0.5 Sample Output 0.5 Source Northeastern Europe 2005, Western Subregion |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator