Description: Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white an ...
分类:
其他好文 时间:
2019-10-01 09:45:56
阅读次数:
111
给定一个长度为n的0/1序列,选取一段区间,将区间内的0改为1,1改为0,问这么一次操作后序列中1的个数最多为多少? ...
分类:
其他好文 时间:
2019-10-01 09:41:02
阅读次数:
67
给定一个字符串列表,字符串包含整数,’+’,’D’,’C’,整数代表一个分数,’+’代表后两个有效分数的和,’D’代表后一个有效分数的两倍,’C’代表删除后一个有效的分数值,最后求所有有效分数的和。例子:输入[“5”,”2”,”C”,”D”,”+”],输出30。2为无效的数,’D’是5*2,’+’是 ...
分类:
其他好文 时间:
2019-09-30 19:57:21
阅读次数:
76
曾经,Lele和他姐姐最喜欢,玩得最久的游戏就是俄罗斯方块(Tetris)了。 渐渐得,Lele发觉,玩这个游戏只需要手快而已,几乎不用经过大脑思考。 所以,Lele想出一个新的玩法。 Lele和姐姐先拿出一块长方形的棋盘,这个棋盘有些格子是不可用的,剩下的都是可用的。Lele和姐姐拿出俄罗斯方块里 ...
分类:
其他好文 时间:
2019-09-30 15:04:16
阅读次数:
95
?1. 玩法说明 游戏开始后,点击屏幕左右两侧,机器人朝左上方或右上方跳一步,如果下一步有石块,成功得1分,否则游戏结束。 2. 模块介绍 游戏场景分为2个:主页场景(home)、游戏场景(game)。 ? 主页场景(home)作为游戏入口,没有其他功能,单纯提供游戏入口。 ? 游戏场景(game) ...
分类:
其他好文 时间:
2019-09-28 12:47:45
阅读次数:
301
先找规律 1. 0,1,2 1. 1,0,2 1. 1,2,0 1. 2,1,0 1. 2,0,1 1. 0,2,1 1. 0,1,2 可知变化周期为6,所以可以将n%6,再直接模拟 代码: include using namespace std; int main() { int n,x,i,a[ ...
分类:
系统相关 时间:
2019-09-27 22:44:23
阅读次数:
150
比赛链接: "Educational Codeforces Round 73 (Rated for Div. 2)" 官方题解: "Educational Codeforces Round 73 Editorial" A. 2048 Game 题意 如果一个只包含 $2$ 的幂次的集合,问能否从中选 ...
分类:
其他好文 时间:
2019-09-26 21:22:23
阅读次数:
103
攻防世界 一开始学习下re,产生了兴趣 game 这个题目在某个CTF平台做过了0-0,再做一遍。(跟着WP 0.0) 首先用ExeinfoPe或者Peid查壳 也可以使用file命令查看相关信息 32位程序,使用ida打开,F5反编译 程序逻辑: shift+F12 查看字符串 进入后 右键lis ...
分类:
其他好文 时间:
2019-09-26 09:22:41
阅读次数:
228
Mike and Ann are sitting in the classroom. The lesson is boring, so they decided to play an interesting game. Fortunately, all they need to play this ...
分类:
其他好文 时间:
2019-09-25 22:49:18
阅读次数:
163
Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one t ...
分类:
其他好文 时间:
2019-09-25 22:27:48
阅读次数:
105