随笔分类 - ACM--搜索
摘要:E. New Reform time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output E. New Reform time limit pe
阅读全文
摘要:题目链接 分析: 一个n * n的图,每个点是一个奶酪的体积,从0,0开始每次最多可以走k步,下一步体积必须大于上一步,求最大体积和 1 #include <iostream> 2 #include <cstdio> 3 #include <queue> 4 #include <cstring> 5
阅读全文
摘要:题目链接 单向bfs就是水题 1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 #include <algorithm> 5 #include <queue> 6 using namespace std; 7 const
阅读全文
摘要:Find The Multiple Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 24768 Accepted: 10201 Special Judge Description Given a positive integer
阅读全文
摘要:#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <set> using namespace std; typedef int State[9]; const int maxs
阅读全文
摘要:题目链接 题意:帮助joe走出一个大火蔓延的迷宫,其中joe每分钟可往上下左右四个方向之一走,所有着火的格子都会蔓延(空格与着火格有公共边,下一分钟这个空格也会着火)。迷宫中有一些障碍格,joe和火都无法进入,当joe走到一个边界的格子我们认为他走出了迷宫 输出R行C列的迷宫,#表示墙,.表示空地,
阅读全文
摘要:The Pilots Brothers' refrigerator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 22057 Accepted: 8521 Special Judge Description The game “
阅读全文
摘要:Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 37050 Accepted: 16122 Description Flip game is played on a rectangular 4x4 field
阅读全文
摘要:http://lx.lanqiao.org/problem.page?gpid=T291 学霸的迷宫 时间限制:1.0s 内存限制:256.0MB 时间限制:1.0s 内存限制:256.0MB 问题描述 学霸抢走了大家的作业,班长为了帮同学们找回作业,决定去找学霸决斗。但学霸为了不要别人打扰,住在一
阅读全文
摘要:滑雪Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 86411Accepted: 32318DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不...
阅读全文
摘要:SudokuTime Limit:2000MSMemory Limit:65536KTotal Submissions:16444Accepted:8035Special JudgeDescriptionSudoku is a very simple task. A square table wit...
阅读全文
摘要:Finding NemoTime Limit:2000MSMemory Limit:30000KTotal Submissions:8456Accepted:1975DescriptionNemo is a naughty boy. One day he went into the deep sea...
阅读全文
摘要:Network SaboteurTime Limit:2000MSMemory Limit:65536KTotal Submissions:10391Accepted:4990DescriptionA university network is composed of N computers. Sy...
阅读全文