码迷,mamicode.com
首页 >  
搜索关键字:candy sharing game    ( 6263个结果
PTA 7-2 猜数字游戏 (15分)
#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和C++写一个消砖块游戏
第一次玩EasyX,写一个比较简单的消砖块游戏。 主函数包括Game的类的开始,运行和结束。 #include "BrickElimination.h" int main() { GameBrickElimination NewGame; NewGame.game_start(); NewGame. ...
分类:编程语言   时间:2020-03-18 23:44:50    阅读次数:82
Gym102431G Game on the Tree
结论:后手必胜当且仅当根节点为直径中点。 根节点为直径中点: 如果两人都在直径上移动,那么不论先手如何移动,后手总能移动到对称的位置。 如果先手移出了直径,设这一点与根节点的距离为$x$,那么后手仍然回到直径上距离根节点$x$的点。 其它的情况先手只需移动至直径中点(当直径中点在边上时移动至该边的一 ...
分类:其他好文   时间:2020-03-15 16:27:10    阅读次数:65
不同场景下的交换机配置命令
设置终端不超时 1. H3C user-interface vty 1 idle-timeout 0 查看启动配置 1. H3C: show saved-configuration 2. Cisco: 3. Huawei: 配置ECMP负载算法 1. H3C: ip load-sharing mod ...
分类:其他好文   时间:2020-03-14 23:56:12    阅读次数:100
C - Perform the Combo
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
@atcoder - AGC002E@ Candy Piles
给定 N 堆糖果,第 i 堆包含 ai 个糖果。 现在两人进行博弈。有两种操作选择: (1)吃掉包含最多糖果的糖果堆。 (2)每堆吃掉一颗。 吃掉最后一颗糖的人判输,问谁必胜? ...
分类:其他好文   时间:2020-03-10 22:13:11    阅读次数:57
下载别人的3D模型文件
下面是我找的资源 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
button
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
Python实现寻宝小游戏
#!/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
Strategic Game HDU - 1054
``` #include #include #include #include using namespace std; #define N 10100 int vis[N], h[N], used[N], maps[1510][1510], n, ans; int e[N],ne[N],idx; ... ...
分类:其他好文   时间:2020-03-06 22:15:15    阅读次数:53
6263条   上一页 1 ... 26 27 28 29 30 ... 627 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!