码迷,mamicode.com
首页 >  
搜索关键字:poj1753flip game    ( 5568个结果
hdu Game of Connections
卡特兰数 递推公式:h(n)=h(n-1)*(4*n-2)/(n+1); 1 import java.math.BigInteger; 2 import java.util.Scanner; 3 4 public class Main { 5 6 public static void m...
分类:其他好文   时间:2014-08-05 11:00:09    阅读次数:222
Xs and Os Referee
Xs and Os Referee 1 def checkio(game_result): 2 winner = 'D' 3 4 for row in game_result: 5 if row[0] == row[1] == row[2] and row[0] !...
分类:其他好文   时间:2014-08-05 10:44:19    阅读次数:286
uva-----(11384)Help is needed for Dexter
Problem HHelp is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned fo...
分类:其他好文   时间:2014-08-05 00:21:08    阅读次数:315
POJ 2886 Who Gets the Most Candies? (线段树)
Description N children are sitting in a circle to play a game. The children are numbered from 1 to N in clockwise order. Each of them has a card with a non-zero integer on it in his/her hand. The ...
分类:其他好文   时间:2014-08-04 17:57:27    阅读次数:284
HDU 1087 Super Jumping! Jumping! Jumping! 最大子序列的和
Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to yo...
分类:其他好文   时间:2014-08-04 17:50:47    阅读次数:158
CodeForces 360E Levko and Game(Codeforces Round #210 (Div. 1))
题意:有一些无向边m条权值是给定的k条权值在[l,r]区间可以由你来定,一个点s1 出发一个从s2出发 问s1 出发的能不能先打到f思路:最短路。首先检测能不能赢 在更新的时候 如果对于一条边 a->b 如果dis1[a] #include#include#include#include #incl...
分类:其他好文   时间:2014-08-04 01:45:46    阅读次数:264
ZOJ 3048 (HDU 2258) Continuous Same Game (1)
Problem Description Continuous Same Game is a simple game played on a grid of colored blocks. Groups of two or more connected (orthogonally, not diagonally) blocks that are the same color may be r...
分类:其他好文   时间:2014-08-03 23:21:29    阅读次数:336
HDU - 1851 - A Simple Game
先上题目:A Simple GameTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/65535 K (Java/Others)Total Submission(s): 1104Accepted Submission(s): 686P...
分类:其他好文   时间:2014-08-03 22:49:56    阅读次数:332
uva10404 - Bachet's Game(博弈,递推)
题目:uva10404 - Bachet's Game(博弈,递推) 题目大意:stan和ollie两个小伙伴在玩石头的游戏:给出N个石头,然后给出Mge数。要求每次都是stan先开始,每次拿走m (是M个数中的其中一个)个石头。谁拿走石头后桌上没有剩下石头就赢了。 解题思路:博弈。对于j和石头,stan想要赢的话那么就要分奇数次将j石头拿走。...
分类:其他好文   时间:2014-08-03 20:38:05    阅读次数:234
ZOJ3791_An Easy Game
给出两个等长的字符串,每次需要改变m个数字,每次必须改变k个数字,求从第一个串变化到第二个串的方案数。DP。f[i][j]改变i步后,有j个位置被改变的方案数。然后直接枚举当前改变的几个位置是前面重合的。然后统计答案输出即可。#include #include #include #define M ...
分类:其他好文   时间:2014-08-03 20:26:35    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!