nyoj1101Oh, my God!错排公式
发布日期:2021-06-29 11:14:05
浏览次数:2
分类:技术文章
本文共 1471 字,大约阅读时间需要 4 分钟。
nyoj1101Oh, my God!时间限制:1000 ms | 内存限制:65535 KB难度:2描述In order to happy everyone, organizer HRW held an open up partythere have specific requirements for this activity is this:First of all, all person in the party will have to write a note to his name into the box;Then, after all the note added is completed, each taking a note from the box;Finally, if made note of your name, then "Congratulations, won the party!"Oh, my God!Now to the question, you can calculate the probability of this happening?Don't count? Don't you want said by others as a DouBi?! AC it!输入Input file contains several test cases. Each test case consists of a integer numbers n on a line(one≤n≤ten ).The last tes case is followed by a line that contains one zeroes. This line must not be processed.输出print the the probabilitySee the following example.样例输入230样例输出Case [1]: 50.00%.Case [2]: 33.33%.
#include#include #include #include #include #include #include
转载地址:https://blog.csdn.net/ZWHSOUL/article/details/79826897 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月08日 08时19分53秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
Python 利用os和shutil复制系统文件
2019-04-29
Python 循环输出菱形字符串
2019-04-29
MySQL常见错误总结
2019-04-29
pymysql 的基础应用
2019-04-29
Html+Css实现 启橙装饰网 项目
2019-04-29
JavaScript 实现哥德巴赫猜想
2019-04-29
JavaScript DOM
2019-04-29
Python 管理程序改进——连接MYSQL
2019-04-29
Python 爬虫
2019-04-29
Python 爬虫-百度风云榜的电影top50
2019-04-29
Python 爬虫-豆瓣影星图片下载
2019-04-29
Excel数据基础操作
2019-04-29
网页端数据库操作界面—主题函数文件
2019-04-29
网页端数据库操作界面-Html页面(1)
2019-04-29
网页端数据库操作界面-Html页面(2)
2019-04-29
网页端数据库操作界面-Html页面(3)
2019-04-29
Excel 高级筛选
2019-04-29
Python爬虫 百度热搜热点
2019-04-29
Python 百度热搜 全页面爬取
2019-04-29
爬取小说——爬取书的地址
2019-04-29