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 maxim ...
分类:
其他好文 时间:
2019-09-25 12:51:33
阅读次数:
96
Java 内部类 内部类分为四种: 非静态内部类 静态内部类 匿名类 本地类 步骤 1 : 非静态内部类 非静态内部类 BattleScore “战斗成绩” 非静态内部类可以直接在一个类里面定义 比如: 战斗成绩只有在一个英雄对象存在的时候才有意义 所以实例化BattleScore 的时候,必须建立 ...
分类:
编程语言 时间:
2019-09-24 13:57:25
阅读次数:
71
Pursuit For Artifacts "CodeForces 652E " Johnny is playing a well known computer game. The game are in some country, where the player can freely trave ...
分类:
其他好文 时间:
2019-09-23 11:56:16
阅读次数:
88
Dominoes Game 描述 Recently, my lovely daughter YuYu indulges in playing a game called dominoes. When the game starts, I first place some blocks with va ...
分类:
其他好文 时间:
2019-09-21 17:32:24
阅读次数:
91
"传送门" A. Cards 记录一下出现的个数就行。 Code B. Multiplication Table 题意: 存在一个序列$a$,现在给出一个矩阵$M$,$M_{ij}=a_i\cdot a_j$。但现在序列和矩阵主对角线上面的元素遗失了。 现在要求$a$序列,数据保证有解。 思路: 容 ...
分类:
其他好文 时间:
2019-09-19 21:54:53
阅读次数:
91
B. The ModcrabVova is again playing some computer game, now an RPG. In the game Vova's character received a quest: to slay the fearsome monster called ...
分类:
其他好文 时间:
2019-09-19 21:16:41
阅读次数:
125
题意:有一个长度为n的01序列,你可以移动k次,每次将一个数移到任意一个位置,求经过操作后区间连续最大的连续0的个数。 “移动”操作看似情况很复杂,不好讨论,但其实无非就两种情况: 一、移动的是1:显然最优的策略是将1移动到最边上(相当于“移走”),目的是将两段连续的0合并。 二、移动的是0:最优策 ...
分类:
其他好文 时间:
2019-09-18 19:34:12
阅读次数:
101
我们通过分析英雄联盟官网页面,进入到资料库页面,分析英雄所在的页面 这里有两种类型的同样的图片,一种是大图片的,一种是类似头像的小图片。我们这里抓取大图片 拿到几种图片链接分析https://game.gtimg.cn/images/lol/act/img/skin/big5000.jpg可以发现所 ...
分类:
其他好文 时间:
2019-09-18 10:44:24
阅读次数:
103
题目背景 有如下一个双人游戏:N(2 <= N <= 100)个正整数的序列放在一个游戏平台上,游戏由玩家1开始,两人轮流从序列的任意一端取一个数,取数后该数字被去掉并累加到本玩家的得分中,当数取尽时,游戏结束。以最终得分多者为胜。 有如下一个双人游戏:N(2 <= N <= 100)个正整数的序列 ...
分类:
其他好文 时间:
2019-09-18 00:49:50
阅读次数:
83
题目链接:https://www.luogu.org/problem/CF1215D 题意:一个数字序列由n(n为整数且小于2e5)位组成,其中有整数个数位被污染,现在A和B可以轮流给被污染数位赋值(0-9),A先来,若最后序列前后两端数位和不等,A赢,否则B赢,两方都选最优策略。 分析:先是高级做 ...
分类:
其他好文 时间:
2019-09-17 19:24:28
阅读次数:
161