题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1030 题意:基础概率题。 代码:#include <stdio.h>#include <string.h>#include <vector> #include <string> #include <algo
题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1104 题意:生日驳论,求最小满足条件的人数 代码:#include <stdio.h>#include <iostream>#include <string.h>#include <algorithm>#includ
题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1027题意: 你面前有n个门,每个对应一个数字,若为正xi,代表xi分钟后你会从它走出迷宫,负数则说明你会在-xi分钟后回到出发点且失去记忆。求出去的时间的期望。代码:#include <iostream>#include <stdio.h>#include <math.h>
Description Tribbles Input: Standard Input Output: Standard Output GRAVITATION, n. “The tendency of all bodies to approach one another with a strength proportion to the quantity of matter they co
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号