码迷,mamicode.com
首页 >  
搜索关键字:cow game    ( 7235个结果
poj3045Cow Acrobats
Cow Acrobats Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7564 Accepted: 2822 Description Farmer John's N (1 <= N <= 50,000) cows (numbe ...
分类:其他好文   时间:2019-07-14 12:48:03    阅读次数:82
Codeforces Round #573 (Div. 2) A. Tokitsukaze and Enhancement
Codeforces Round #573 (Div. 2) A. Tokitsukaze and Enhancement Tokitsukaze is one of the characters in the game "Kantai Collection". In this game, ever ...
分类:其他好文   时间:2019-07-13 21:25:56    阅读次数:178
Codeforces Round #573 (Div. 2)
D. Tokitsukaze, CSL and Stone Game 题意:有n堆石头,每人每次只能去一颗石子,若轮到当前人没任何一堆石子可以取或当前人取到后剩下有俩堆石子个数相同则当前人输; 给定石子序列。 分析:1、若有类似“2 3 3 ”则后手胜,因为有这个序列就必须在这个序列中去石子(因为如 ...
分类:其他好文   时间:2019-07-13 13:50:33    阅读次数:110
D. Tokitsukaze, CSL and Stone Game ( 取石子游戏?no,更像棋盘游戏 )
去吧,皮皮虾 题意: 有 n 堆石子,每堆有 a[ i ] 个,然后每次 操作 可以选择任意一堆 石子,取走一个。 若你取完了之后,存在两堆石子,他们的个数一样多,你就输了( 包括两堆都是0个), 或者你不能取了,你也输了。 解: 1、若只有一堆,那就判奇偶就行了。 2、若存在 至少 两对 相等个数 ...
分类:其他好文   时间:2019-07-13 13:49:50    阅读次数:274
POJ - 3264(线段树实现)
题目:poj.org/problem?id=3264 题意:求一段区间内最大值与最小值的差。 看到区间最值首先想到RMQ--ST算法。但本题出现在了kuangbin专题的线段树里。 用线段树也无思维难点,但有两个坑: 1. 查询函数中,区间不包含时的返回值。 2.用cin,cout会TLE。用c的输 ...
分类:其他好文   时间:2019-07-13 13:22:03    阅读次数:96
Codeforces - 1191D - Tokitsukaze, CSL and Stone Game - 博弈论
https://codeforces.com/contest/1191/problem/D 好像在哪里见过类似的? 相当于在棋盘上面移动棋子,每次只能左移一格,移动完之后有棋子重叠或本身就是不能移动就输。 那么只有一颗棋子的情况,判断奇偶就行。 当有多颗棋子,假如检测到某两颗棋子重叠,那么左边那颗棋 ...
分类:其他好文   时间:2019-07-13 09:26:36    阅读次数:99
HDU-1054-Strategic Game
链接: https://vjudge.net/problem/HDU 1054 题意: Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution f ...
分类:其他好文   时间:2019-07-10 23:09:56    阅读次数:148
Nginx基本配置
Nginx 1、nginx启动的2种方式 + 这2种方式不能混用,只能用一种 2、nginx的配置文件 3、站点目录配置解析 http server location 扩展了解项 4、nginx搭建静态资源web服务器 编写Nginx配置文件 [root@nginx conf.d] cat game ...
分类:其他好文   时间:2019-07-10 20:08:23    阅读次数:115
HDU 1525 Euclid's Game
"题目" include include using namespace std; int dfs(int a,int b,int ans) { if(a%b==0) { return ans; } else if(a b&&a ...
分类:其他好文   时间:2019-07-10 10:27:45    阅读次数:85
CodeForce - 1187 E. Tree Painting (换根dp)
You are given a tree (an undirected connected acyclic graph) consisting of nn vertices. You are playing a game on this tree. Initially all vertices ar ...
分类:其他好文   时间:2019-07-10 01:16:01    阅读次数:78
7235条   上一页 1 ... 78 79 80 81 82 ... 724 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!