码迷,mamicode.com
首页 >  
搜索关键字:game    ( 5568个结果
L - Lost's revenge HDU - 3341 (AC自动机 + 记忆化搜索 + 变进制算法)
Lost and AekdyCoin are friends. They always play "number game"(A boring game based on number theory) together. We all know that AekdyCoin is the man c ...
分类:编程语言   时间:2020-07-07 12:52:15    阅读次数:93
leetcode-----45. 跳跃游戏 II
链接:https://leetcode-cn.com/problems/jump-game-ii/ 代码 class Solution { public: int jump(vector<int>& nums) { int n = nums.size(); vector<int> f(n); for ...
分类:其他好文   时间:2020-07-07 09:32:36    阅读次数:49
关于游戏
"""需求:1)查看帮助信息 2)查看历史最高分 3) 创建游戏对象,开始游戏游戏说明:设计一个Game类属性:定义一类属性top_score记录游戏的历史最高分(与这个游戏有关,每次游戏的时候与最高分无关) 定义一个实例属性player_name记录当前游戏玩家的玩家姓名方法:静态方法show_h ...
分类:其他好文   时间:2020-07-05 19:10:50    阅读次数:96
Good Bye 2019
比赛链接:https://codeforces.com/contest/1270 A. Card Game 题意 有两个人在玩卡牌游戏,规则如下: 共有 $n$ 张牌,值为 $1$ 到 $n$ 两个人各出一张牌,牌大者拿走两张牌 手中先无牌者输掉游戏 给出一开始两个人的手牌情况(至少都有一张牌),判 ...
分类:其他好文   时间:2020-07-04 01:16:02    阅读次数:62
Number Game - 记忆化搜索+ 递推求博弈论
传送门 以前博弈论都是靠找规律,这个题给我了新的思路,就是如果说博弈论里面的操作是对数字操作,那么可以采用递推的形式 先初始化$\sqrt(n)$的数据,然后有种杜教筛的思想,对于$n > N$时,才回去继续查找,而在求dp[n / j]时,继续查看,n / j 是否 < N 设dp[i], 如果d ...
分类:其他好文   时间:2020-07-01 11:03:07    阅读次数:54
0045. Jump Game II (H)
Jump Game II (H) 题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array r ...
分类:其他好文   时间:2020-06-30 09:14:16    阅读次数:59
001_Linux常用命令之ls命令
1. 认识Linux系统目录结构 /bin 可执行文件所在目录 /media 挂载设备媒体,u盘,光驱等 /mnt 该目录主要是为了让用户挂在别的文件系统(挂在自己的u盘) /usr unix system resources,庞大和复杂的目录,很多应用会安装到此目录(/usr/local-用户自己 ...
分类:系统相关   时间:2020-06-29 00:30:39    阅读次数:74
【题解】「CF1373B」01 Game
这题好水,就是简单的模拟+字符串。 \(\sf Translation\) 给定一个 $01$ 串,如果 $0$ 出现的次数和 $1$ 出现的次数的最小值是奇数,输出 DA ,否则输出 NET 多测。 \(\sf Solution\) 法一 简单模拟+字符串,如果你是刚刚学字符串的萌新,推荐先看看 ...
分类:其他好文   时间:2020-06-28 22:51:24    阅读次数:117
星力九代 命中算法源代码 特殊用户处理 点控调整
难度命中算法制excel表格 package com.miracle9.game.algorithm; import com.miracle9.game.algorithm.FishServerSuanfa.FISH_TYPE; import java.util.Objects; import ja ...
分类:编程语言   时间:2020-06-28 22:07:51    阅读次数:80
CodeForces - 469A I Wanna Be the Guy
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. Each of them wants to ...
分类:其他好文   时间:2020-06-27 21:41:11    阅读次数:90
5568条   上一页 1 ... 8 9 10 11 12 ... 557 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!