码迷,mamicode.com
首页 >  
搜索关键字:cow game    ( 7235个结果
Best Cow Fences
https://loj.ac/problem/10012 题目描述 有一个长度为n的正整数序列,求一个长度不小于L,平均数最大的子段,输出其平均数的1000倍(整数) 思路 我们可以二分结果,寻找是否存在长度不小于为L的子段的平均数大于二分答案。 那我们考虑将序列中的每一个数都减去二分答案,如果有一 ...
分类:其他好文   时间:2019-09-29 09:42:04    阅读次数:63
Cocos Creator实现左右跳游戏,附完整源码
?1. 玩法说明 游戏开始后,点击屏幕左右两侧,机器人朝左上方或右上方跳一步,如果下一步有石块,成功得1分,否则游戏结束。 2. 模块介绍 游戏场景分为2个:主页场景(home)、游戏场景(game)。 ? 主页场景(home)作为游戏入口,没有其他功能,单纯提供游戏入口。 ? 游戏场景(game) ...
分类:其他好文   时间:2019-09-28 12:47:45    阅读次数:301
题解 CF777A 【Shell Game】
先找规律 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
[USACO09MAR]牛飞盘队Cow Frisbee Team
传送门:https://www.luogu.org/problem/P2946 本题类似于01背包,定义 dp[i][j] 表示前 i 个牛,总和取模幸运值为 j 时的数量,a[i]为第j头牛的能力值,很明显dp[i][j]+=dp[i-1][j](不选择第i头牛)+dp[i-1][(j-a[i]+ ...
分类:其他好文   时间:2019-09-27 20:57:09    阅读次数:79
「POJ 3268」Silver Cow Party
"更好的阅读体验" Portal Portal1: "POJ" Portal2: "Luogu" Description One cow from each of N farms $(1 \le N \le 1000)$ conveniently numbered $1 \cdots N$ is g ...
分类:其他好文   时间:2019-09-26 21:26:00    阅读次数:80
Educational Codeforces Round 73 (Rated for Div. 2)
比赛链接: "Educational Codeforces Round 73 (Rated for Div. 2)" 官方题解: "Educational Codeforces Round 73 Editorial" A. 2048 Game 题意 如果一个只包含 $2$ 的幂次的集合,问能否从中选 ...
分类:其他好文   时间:2019-09-26 21:22:23    阅读次数:103
「Luogu 1821」[USACO07FEB]银牛派对Silver Cow Party
"更好的阅读体验" Portal Portal1: "Luogu" Portal2: "POJ" Description One cow from each of N farms $(1 \le N \le 1000)$ conveniently numbered $1 \cdots N$ is g ...
分类:其他好文   时间:2019-09-26 21:07:27    阅读次数:82
2019.8.31-9.3 攻防世界RE练习
攻防世界 一开始学习下re,产生了兴趣 game 这个题目在某个CTF平台做过了0-0,再做一遍。(跟着WP 0.0) 首先用ExeinfoPe或者Peid查壳 也可以使用file命令查看相关信息 32位程序,使用ida打开,F5反编译 程序逻辑: shift+F12 查看字符串 进入后 右键lis ...
分类:其他好文   时间:2019-09-26 09:22:41    阅读次数:228
C. Substring Game in the Lesson ( Codeforces Round #586 (Div. 1 + Div. 2) )
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
Soldier and Number Game-素数筛
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
7235条   上一页 1 ... 59 60 61 62 63 ... 724 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!