问题描述: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your ...
分类:
其他好文 时间:
2018-06-11 10:59:20
阅读次数:
180
You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is (target[0], target[1]). There are several ghosts on t ...
分类:
其他好文 时间:
2018-06-11 10:52:54
阅读次数:
154
传送门 题目描述 The "endless" model in "I, zombie" of "Plants vs. Zombies" is my favourite.The aim of the game is to put down the zombies most reasonable in ...
分类:
其他好文 时间:
2018-06-10 20:42:46
阅读次数:
249
I Love this Game! Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 2334 Accepted: 916 Description A traditional game is played between two p ...
分类:
其他好文 时间:
2018-06-09 21:13:09
阅读次数:
218
https://vjudge.net/problem/POJ-1753 题意 4*4的棋盘,翻转其中的一个棋子,会带动邻接的棋子一起动。现要求把所有棋子都翻成同一种颜色,问最少需要几步。 分析 同一个棋子翻偶数次等于没有翻,翻奇数次就浪费步数,因此每个棋子最多翻一次,也就是说,答案最大就是16。故总 ...
分类:
其他好文 时间:
2018-06-09 21:12:35
阅读次数:
184
传送门 题目描述 Xiangqi is one of the most popular two-player board games in China. The game represents a battle between two armies with the goal of capturin ...
分类:
其他好文 时间:
2018-06-09 19:50:15
阅读次数:
205
用栈或者vector都行,string转int可以直接stoi,学到了,妈个腿 ...
分类:
其他好文 时间:
2018-06-09 16:46:11
阅读次数:
143
Problem description There is a game called "I Wanna Be the Guy", consisting of n levels. Little X and his friend Little Y are addicted to the game. Ea ...
分类:
其他好文 时间:
2018-06-09 13:57:17
阅读次数:
196
AGC025简要题解 B RGB Coloring 一道简单题,枚举即可。 C Interval Game 考虑可以进行的操作只有两种,即左拉和右拉,连续进行两次相同的操作是没有用的。 左拉时肯定会选择右端点尽量小的,右拉选择左端点尽量大的,所以排序之后贪心即可。 D Choosing Points ...
分类:
其他好文 时间:
2018-06-09 11:36:48
阅读次数:
348
Python之路DAY.1 第一阶段大概学习了python的基础,语法有while,if,for等,综合知识,我结合程序编写了以下内容,这是一个猜数游戏,需要注册登录然后猜数。缺点本人技术原因,每次进行都需要重新注册和登录。还请见谅。 知识整合: #Author: Sam Zhangprint("P ...
分类:
编程语言 时间:
2018-06-09 00:03:13
阅读次数:
197