题意:M*N的格子构成的城市,每一个格子上不是F就是R,F代表Free,表示这个格子可以使用,R代表不可以使用。要求:在这里面找到一个矩形,使得面积是最大的。(即必须满足覆盖矩形的每一个格子都是F)输入:M,N0 && a[x][i]>T; while(T--){ scanf("...
分类:
其他好文 时间:
2015-01-17 00:57:16
阅读次数:
236
Problem Description Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each gr...
分类:
其他好文 时间:
2015-01-16 23:42:12
阅读次数:
335
#!/bin/bash # Tetris Game #APP declaration APP_NAME="${0##*[\\/]}" APP_VERSION="1.0" #颜色定义 ...
分类:
系统相关 时间:
2015-01-16 16:22:16
阅读次数:
202
题意:有三个骰子,分别有k1,k2,k3个面。
每次掷骰子,如果三个面分别为a,b,c则分数置0,否则加上三个骰子的分数之和。
当分数大于n时结束。求游戏的期望步数。初始分数为0
设dp[i]表示达到i分时到达目标状态的期望,pk为投掷k分的概率,p0为回到0的概率
则dp[i]=∑(pk*dp[i+k])+dp[0]*p0+1;
都和dp[0]有关系,而且dp[0]就是我们所求...
分类:
其他好文 时间:
2015-01-16 08:43:53
阅读次数:
127
本篇是Cocos2d-x3.3入门三部曲的第二篇
l 创建一个名为hello game的cocos2dx 3.3的项目
l 编译hello game项目
l 在eclipse中运行调试hello game项目,并且在android手机上运行成功
分类:
其他好文 时间:
2015-01-15 21:53:51
阅读次数:
159
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2015-01-15 12:27:03
阅读次数:
128
目录Cocoa Touch 层高级特性多任务数据保护苹果推送通知服务本地通知手势识别器文件共享支持点对点服务标准系统视图控制器外部设备支持Cocoa Touch 层包含的框架Address Book UI 框架Event Kit UI 框架Game Kit 框架iAd 框架Map Kit 框架Mes...
分类:
移动开发 时间:
2015-01-15 12:22:06
阅读次数:
367
Tree
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with
capital lett...
分类:
其他好文 时间:
2015-01-14 22:56:51
阅读次数:
231
https://oj.leetcode.com/problems/dungeon-game/
publicclassSolution{
publicintcalculateMinimumHP(int[][]map)
{
//DP
//Definea2DM*Narrayblood.
//blood[i][j]meanstheminbloodwhenarrivethispoint.
//So,thelastpoint,blood[m-1][n-1]=1
//
//blood[i][j]=max(1,//Atlea..
分类:
其他好文 时间:
2015-01-14 18:17:17
阅读次数:
140
A Funny GameTime Limit:1000MSMemory Limit:65536KTotal Submissions:4138Accepted:2510DescriptionAlice and Bob decide to play a funny game. At the beginn...
分类:
其他好文 时间:
2015-01-14 09:34:55
阅读次数:
131