码迷,mamicode.com
首页 >  
搜索关键字:poj1753flip game    ( 5568个结果
1753 Flip Game
#include#include#include#includeusing namespace std;int pieces[10][10];int ans[16];int res[4][4];int Min=1000000;const int INF=1=0) res...
分类:其他好文   时间:2014-08-03 15:14:55    阅读次数:228
HDU - 1698 Just a Hook (线段树区间修改)
Description In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same lengt...
分类:其他好文   时间:2014-08-03 10:18:05    阅读次数:265
uva 1521 - GCD Guessing Game(贪心)
题目链接:uva 1521 - GCD Guessing Game 题目大意:给定一个数N,现在又一个数x,在1~N之间,现在每次可以猜一个数a,返回gcd(x,a),问说最少猜几次可以确定x。 解题思路:其实就将1~N里面的素数都要考虑一遍,因为有一个N的限制,所以每次选出来的素数的积不大于N即可。 #include #include #include using name...
分类:其他好文   时间:2014-08-02 23:27:44    阅读次数:302
HDU-2821-Pusher(DFS)
Problem Description PusherBoy is an online game http://www.hacker.org/push . There is an R * C grid, and there are piles of blocks on some positions. The goal is to clear the blocks by pushing into t...
分类:其他好文   时间:2014-08-02 23:27:34    阅读次数:342
POJ 3435 Sudoku Checker
Description The puzzle game of Sudoku is played on a board of N2 × N2 cells. The cells are grouped in N × N squares of N × N cells each. Each cell is either empty or contains a number between 1 a...
分类:其他好文   时间:2014-08-02 23:26:34    阅读次数:344
【HackerRank】Game Of Rotation
题目连接:Game Of RotationMark is an undergraduate student and he is interested in rotation. A conveyor belt competition is going on in the town which Mark...
分类:其他好文   时间:2014-08-02 23:21:14    阅读次数:434
ZOJ 1642 Match for Bonus(dp)
Match for Bonus Time Limit: 2 Seconds      Memory Limit: 65536 KB Roy played a game with his roommates the other day.  His roommates wrote 2 strings of characters, and gave each character a b...
分类:其他好文   时间:2014-08-02 18:20:33    阅读次数:256
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. Th...
分类:其他好文   时间:2014-08-02 15:37:33    阅读次数:259
FZU_ Problem 2148 Moon Game
Problem 2148 Moon Game Accept: 386    Submit: 1080 Time Limit: 1000 mSec    Memory Limit : 32768 KB  Problem Description Fat brother and Maze are playing a kind of special (hentai) game in...
分类:其他好文   时间:2014-08-02 13:01:13    阅读次数:224
B - Georgia and Bob
Description Georgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, ..., and place N chessmen on different grid...
分类:其他好文   时间:2014-08-02 12:56:13    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!