
DFS&&BFS
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
-
HPU DFS + BFS 专项练习A - Red and Black HDU - 1312
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can'原创 2017-07-31 23:16:52 · 297 阅读 · 0 评论 -
HDU 1010 Tempter of the Bone
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone原创 2017-08-01 18:18:47 · 171 阅读 · 0 评论 -
C - Oil Deposits HDU1241
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th原创 2017-08-02 14:02:17 · 237 阅读 · 0 评论 -
D - Fox And Two Dots (codeforces 510B)
Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot that has some color. We will use diffe...原创 2017-08-02 14:20:12 · 234 阅读 · 0 评论 -
牛客 石油采集(补题)
链接:https://www.nowcoder.com/acm/contest/76/A来源:牛客网题目描述 随着海上运输石油泄漏的问题,一个新的有利可图的行业正在诞生,那就是撇油行业。如今,在墨西哥湾漂浮的大量石油,吸引了许多商人的目光。这些商人们有一种特殊的飞机,可以一瓢略过整个海面20米乘10米这么大的长方形。(上下相邻或者左右相邻的格子,不能斜着来)当然,这要求一瓢撇过去的全部是油,如果...原创 2018-02-20 23:53:18 · 408 阅读 · 0 评论 -
CodeForces - 844C Sorting by Subsequences
C. Sorting by Subsequencestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence a1, a2, ..., an consisting of ...原创 2018-10-11 21:51:30 · 239 阅读 · 0 评论 -
Codeforces Round #516 (Div. 2)
A. Make a triangle!time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMasha has three sticks of length aa, bb and cc centimeters re...原创 2018-10-17 18:07:52 · 416 阅读 · 0 评论