"Link" 题意: 给定一张 $N M(2 \le n,m \le 200)$ 的矩形网格纸,两名玩家轮流行动。 在每一次行动中,可以任选一张矩形网格纸,沿着某一行或某一列的格线,把它剪成两部分。 首先剪出 $1 1$ 的格纸的玩家获胜。 两名玩家都采取最优策略行动,求先手是否能获胜。 思路: 得 ...
分类:
其他好文 时间:
2020-03-21 10:03:35
阅读次数:
48
HTML:<span id="lab_game"></span> JS: $(document).ready(function () { var xselect = '' var nselect = '' $.ajax({ type: "post", url: "__ROOT__/area/getA ...
分类:
其他好文 时间:
2020-03-20 13:00:33
阅读次数:
52
class Game def initialize(id,title,price) @id=id @title=title @price=price end def showGame puts @id+" "+@title+","+@price._to_s end def self.toStr pu ...
分类:
其他好文 时间:
2020-03-19 15:07:15
阅读次数:
72
#include<stdio.h>intmain(){inta,b,n;inti=1;scanf("%d%d",&a,&n);while(scanf("%d",&b)){if(b<0&&i<n){printf("GameOver");return0;}if(b<a){printf("Toosmall\n");i++;}if(b&
分类:
其他好文 时间:
2020-03-19 09:26:57
阅读次数:
199
第一次玩EasyX,写一个比较简单的消砖块游戏。 主函数包括Game的类的开始,运行和结束。 #include "BrickElimination.h" int main() { GameBrickElimination NewGame; NewGame.game_start(); NewGame. ...
分类:
编程语言 时间:
2020-03-18 23:44:50
阅读次数:
82
结论:后手必胜当且仅当根节点为直径中点。 根节点为直径中点: 如果两人都在直径上移动,那么不论先手如何移动,后手总能移动到对称的位置。 如果先手移出了直径,设这一点与根节点的距离为$x$,那么后手仍然回到直径上距离根节点$x$的点。 其它的情况先手只需移动至直径中点(当直径中点在边上时移动至该边的一 ...
分类:
其他好文 时间:
2020-03-15 16:27:10
阅读次数:
65
You want to perform the combo on your opponent in one popular fighting game. The combo is the string ss consisting of nn lowercase Latin letters. To p ...
分类:
其他好文 时间:
2020-03-13 19:02:07
阅读次数:
72
下面是我找的资源 https://wow.techbrood.com/uploads/160601/obj/banana.obj https://threejs.org/examples/models/obj/male02/male02.obj http://game.gtimg.cn/images ...
分类:
其他好文 时间:
2020-03-09 22:40:25
阅读次数:
84
public class button : MonoBehaviour { public GameObject obj;//声明Text游戏对象 private int counter = 1;//声明计数器连良 void Update() { if (counter % 2 == 0)//当计数器 ...
分类:
其他好文 时间:
2020-03-09 20:55:19
阅读次数:
51
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Treasure Hunter In this game, you will play as a treasure hunter to find a mysterious treasure. In ...
分类:
编程语言 时间:
2020-03-08 20:18:44
阅读次数:
84