
个人刷kuangbin带你飞系列
文章平均质量分 60
Izayoi_w
我就是从这儿跳下去,死外边,也绝对不学算法 —— 真香~
展开
-
kuangbin一C:HDU2717 Catch That Cow(BFS)
Problem Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a p...原创 2018-07-23 16:04:34 · 329 阅读 · 0 评论 -
UVA 11752 Super Power(数论 技巧枚举)
Descripe:We all know the Super Powers of this world and how they manage to get advantages in political warfare or even in other sectors. But this is not a political platform and so we will talk about...原创 2019-02-27 21:19:34 · 311 阅读 · 0 评论 -
kuangbin六A:POJ 1251 Jungle Roads(最小生成树模板题)
Description:模板题没啥好说的prim:#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int INF = 0x3f3f3f;int Map[30][30]...原创 2018-08-08 12:58:13 · 314 阅读 · 0 评论 -
kuangbin八A:POJ 1679 The Unique MST(次小生成树)
Description:Given a connected undirected graph, tell if its minimum spanning tree is unique.Definition 1 (Spanning Tree): Consider a connected, undirected graph G = (V, E). A spanning tree of G is...原创 2018-08-09 21:03:48 · 232 阅读 · 0 评论 -
kuangbin一B:POJ2251 Dungeon Master(BFS)
题目: You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one unit north, ...原创 2018-07-23 09:54:00 · 211 阅读 · 0 评论 -
kuangbin一A:POJ1321 棋盘问题(DFS)
Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n &lt;=...原创 2018-07-22 16:48:50 · 252 阅读 · 0 评论 -
kuangbin带你飞系列目录与简介
kuangbin带你飞系列是由ACM圈内的一个菊苣,上海大学的邝斌(现已研究生毕业,就职于谷歌),在vjudge平台上建立的一个题目系列,从最简单的暴力搜索,到各种高深的算法与数据结构,几乎无所不包,这一套刷下来对于每一位打ACM的人来说都将是一次水平的飞跃。 目录链接:https://cn.vjudge.net/article/187 题目分级及建议顺序链接:ACM 的正确入门方式是什么? ...原创 2018-08-05 20:23:02 · 17124 阅读 · 0 评论 -
kuangbin五A:POJ2236 Wireless Network(并查集应用)
Description:An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all comp...原创 2018-08-03 16:27:53 · 238 阅读 · 0 评论 -
kuangbin三Dancing Links合集
Dancing Links,跳舞链,是一种数据结构以及配套的算法,用于解决精确覆盖问题与重复覆盖问题。具体讲解博客链接: https://www.cnblogs.com/grenet/p/3145800.html https://www.cnblogs.com/wujiechao/p/5767124.htmlZOJ3029 Treasure Map:#include &lt;io...原创 2018-07-30 09:51:41 · 239 阅读 · 0 评论 -
kuangbin二A:Eight(八数码问题)(A*搜索+康托展开hash)
Describe: The 15-puzzle has been around for over 100 years; even if you don’t know it by that name, you’ve seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on it...原创 2018-07-25 20:08:43 · 444 阅读 · 0 评论 -
kuangbin一D:Fliptile (状态压缩DFS)
Describe: Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N grid (1 ≤ M ≤...原创 2018-07-24 08:44:08 · 432 阅读 · 0 评论 -
Sigma Function(因子和的性质)
Sigma FunctionTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1336DescriptionSigma function is an interesting function in Number Theory...原创 2019-02-26 21:19:13 · 1123 阅读 · 3 评论