码迷,mamicode.com
首页 >  
搜索关键字:dice    ( 352个结果
python---骰子游戏
骰子游戏:#!/usr/bin/envpython3.5//指定python的版本 #File:dice.py importrandom//导入随机库 foriinrange(1,6)://range表示范围,从1开始不包括6,依次执行5次 random1=random.randint(1,6) random2=random.randint(1,6)//重复一次,总共做两次这个操作 total=random1+ra..
分类:编程语言   时间:2016-01-08 20:40:37    阅读次数:702
iOS 骰子战争 Dice Wars
占坑这个游戏之前在网页端玩过,App Store 上没有搜到特别好的,想自己做了类似的iOS APP 游戏
分类:移动开发   时间:2015-11-26 18:52:44    阅读次数:167
Light OJ 1064 - Throwing Dice
题目大意:给你n个骰子, 问点数大于等于x的概率是多少?#include#include#include#include#include#include#include#includeusing namespace std;typedef long long LL;const int INF = 1...
分类:Windows程序   时间:2015-10-29 20:07:53    阅读次数:237
poj 3295 Tautology
DescriptionWFF 'N PROOF is a logic game played with dice. Each die has six faces representing some subset of the possible symbols K, A, N, C, E, p, q,...
分类:其他好文   时间:2015-10-27 21:42:58    阅读次数:202
BNU 13064 Dice (I) 前缀和优化DP
Dice (I)You haveNdices; each of them hasKfaces numbered from1toK. Now you have arranged theNdices in a line. You can rotate/flip any dice if you want....
分类:其他好文   时间:2015-10-25 17:56:52    阅读次数:186
UVA 10759 Dice Throwing
题意为抛n个骰子凑成的点数和大于或等于x的概率,刚开始用暴力枚举,虽然AC了,但时间为2.227s,然后百度了下别人的做法,交了一遍,靠,0.000s,然后看了下思路,原来是dp,在暴力的基础上记忆化搜索,把所有可能枚举出来再累加,然后自己也打了一遍,0.000sA了,做法是开一个二维数组,第一.....
分类:Windows程序   时间:2015-10-06 12:48:34    阅读次数:204
hdu 5012 Dice
Problem DescriptionThere are 2 special dices on the table. On each face of the dice, a distinct number was written. Consider a1.a2,a3,a4,a5,a6to be nu...
分类:其他好文   时间:2015-08-20 06:45:16    阅读次数:121
集训第六周 E题
E -期望(经典问题)Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionGiven a dice withnsides, you have to find the expect...
分类:其他好文   时间:2015-08-19 11:04:45    阅读次数:211
数学概念——E 期望(经典问题)
E -期望(经典问题)Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionGiven a dice withnsides, you have to find the expect...
分类:其他好文   时间:2015-08-18 21:00:42    阅读次数:128
Dice (III) 概率dp
#include #include #include #include using namespace std;int t,n;double dp[100010];int main(){ scanf("%d",&t); int cas=1; while(t--) { scanf("%d",&n);....
分类:其他好文   时间:2015-08-14 15:36:30    阅读次数:110
352条   上一页 1 ... 25 26 27 28 29 ... 36 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!