码迷,mamicode.com
首页 >  
搜索关键字:christmas game    ( 5650个结果
Codeforces Round #258 (Div. 2)
A. Game With Sticks 题意:博弈题,就是给你一个n+m个棒子,n个棒子横着放,m个棒子竖着放,这样形成一个有交叉点的图子,要你每次操作能拿交叉点,相交的那2个的棒子可以拿走,直到最后不能拿走棒子的那一人输了 AC代码: #include int main() { int n,m; scanf("%d %d",&n,&m); n=n<m?n:m; ...
分类:其他好文   时间:2014-07-25 11:16:21    阅读次数:204
POJ1390 Blocks 【动态规划】
Blocks Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 4173   Accepted: 1661 Description Some of you may have played a game called 'Blocks'. There are n bl...
分类:其他好文   时间:2014-07-25 11:11:22    阅读次数:312
hdu 1698
Just a Hook Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16563    Accepted Submission(s): 8234 Problem Description In the game o...
分类:其他好文   时间:2014-07-25 11:08:51    阅读次数:269
Codeforces 451C Predict Outcome of the Game(暴力)
题目连接:Codeforces 451C Predict Outcome of the Game 题目大意:题意有点坑,就是三支球队有n场比赛,错过了k场,即这k场比赛不知道输赢,只知道第一支球队和第二支球队胜局情况差d1,第二和第三差d2,问说最后有没有可能三支队伍胜局数相同。 解题思路:考虑四种情况下的场数u,是否为3的倍数,u/3后是否比当前情况下胜局数最高的队伍大,并且还要判断...
分类:其他好文   时间:2014-07-25 10:57:51    阅读次数:180
POJ 1222 EXTENDED LIGHTS OUT 高斯消元
点击打开链接 EXTENDED LIGHTS OUT Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 6492   Accepted: 4267 Description In an extended version of the game Lights O...
分类:其他好文   时间:2014-07-24 23:32:44    阅读次数:268
HDU 1087 Super Jumping! Jumping! Jumping!
Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know...
分类:其他好文   时间:2014-07-24 17:28:16    阅读次数:241
mongodb之find格式化打印
未格式化打印>db.games.find() {"_id":ObjectId("53d077372826c5d3aae7ad6a"),"game":"pinball","user":"joe","score":5050}格式化打印>db.games.find().pretty() { "_id":ObjectId("53d077372826c5d3aae7ad6a"), "game":"pinball", "user":"joe", "score":5050 } >修..
分类:数据库   时间:2014-07-24 12:28:55    阅读次数:296
UVa 10651 Pebble Solitaire(DP 记忆化搜索)
Pebble Solitaire   Pebble solitaire is an interesting game. This is a game where you are given a board with an arrangement of small cavities, initially all but one occupied by a pebble each. The...
分类:其他好文   时间:2014-07-23 22:38:37    阅读次数:344
ZOJ1008
Gnome TetravexTime Limit:10 Seconds Memory Limit:32768 KBHart is engaged in playing an interesting game, Gnome Tetravex, these days. In the game, at t...
分类:其他好文   时间:2014-07-23 16:33:01    阅读次数:293
HDU 4861(多校)1001 Couple doubi
Problem Description DouBiXp has a girlfriend named DouBiNan.One day they felt very boring and decided to play some games. The rule of this game is as following. There are k balls on the desk. Every...
分类:其他好文   时间:2014-07-23 00:05:27    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!