码迷,mamicode.com
首页 >  
搜索关键字:cow game    ( 7235个结果
Catch That Cow
典型的模版题,很多方法可以解决,没什么难点,直接放代码了 #include <iostream>#include <queue>using namespace std;int n, k;bool look[100001];struct node { int n, step; node(int x=0 ...
分类:其他好文   时间:2020-02-02 21:53:40    阅读次数:72
Cow Bowling
The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling- ...
分类:其他好文   时间:2020-02-02 19:42:09    阅读次数:74
Parity game POJ - 1733 带权并查集
#include<iostream> #include<algorithm> #include<cstdio> using namespace std; const int N=10010<<1; struct node { int l,r,ans; } q[N]; int a[N],fa[N],d ...
分类:其他好文   时间:2020-02-01 21:18:27    阅读次数:74
凉脾的比赛补题
B - Game of Throwns Kattis - throwns 这道题目理解起来简单,但上手就会发现有很多小细节,如果疏忽,将导致错误。细节之一:学生的编号是0至n-1,而非1至n。 容易处理的细节:判断输入的是数字还是undo,可以直接判断输入的字符串的第一个字符是否为‘u’。若不是,则 ...
分类:其他好文   时间:2020-02-01 19:13:22    阅读次数:96
Codeforces Round #167 (Div. 1) E. Dima and Game
一个 $(l,r)$ 有两个后继,所以 sg 值最大只有 2,$r-l+1$ 相等的 pair 的 sg 值相同,那么就枚举 $d=r -l+1$,对于一个 $d$ 很容易求有多少对 $(l,r)$ 满足 $r-l+1=d$ 打表发现 $d$ 的 sg 值最多只有 100 段。 设 $g_i$ 表示 ...
分类:其他好文   时间:2020-02-01 17:51:58    阅读次数:86
Windows ftp模块搭建
filezilla下载地址:https://filezilla-project.org/ 安装,按照提示安装 用户配置: 创建3个用户web、game、control 密码都为:456123 设置共享目录: Web:D:\www\GameFront Game:D:\game Control:D:\w ...
分类:Windows程序   时间:2020-02-01 12:17:40    阅读次数:86
FZU-Problem 2150 Fire Game(两点bfs)
Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is con ...
分类:其他好文   时间:2020-02-01 12:13:21    阅读次数:75
#614 C. NEKO's Maze Game
起初一直看不懂题的意思,最后看了大佬的视频讲解才明白了题的意思。 题意:每次询问重复的时候抵消上一次操作 如果是奇数次的操作则视为障碍阻挡前进 收获:0和1的转换技巧,简单搜索和巧定义全局变量,没必要一定要写出来函数 非函数写法: #include<bits/stdc++.h> using name ...
分类:其他好文   时间:2020-02-01 01:02:10    阅读次数:103
HDU-6036 Division Game(ntt模板)
题面 Description There are $k$ piles of stones in a circle, numbered from $0$ to $k 1$, where the number of the stones in each pile is $n$ initially. Yo ...
分类:其他好文   时间:2020-01-30 14:09:07    阅读次数:88
【POJ3613】Cow Relays
题目大意:给定一张无向带权图 , 找出从 s 到 e 恰好经过 n 条边的最短路径 ...
分类:其他好文   时间:2020-01-30 09:27:52    阅读次数:57
7235条   上一页 1 ... 34 35 36 37 38 ... 724 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!