![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kuangbin带我飞
龍木
若人生为棋,我愿为卒,漫漫征途,谁曾见我后退半步
展开
-
C - Play a game
New Year is Coming!ailyanlu is very happy today! and he is playing a chessboard game with 8600.The size of the chessboard is n*n. A stone is placed in a corner square. They play alternatively with 8600 having the first move. Each time, player is allowed原创 2020-10-24 10:46:33 · 209 阅读 · 0 评论 -
G - 邂逅明下
当日遇到月,于是有了明。当我遇到了你,便成了侣。那天,日月相会,我见到了你。而且,大地失去了光辉,你我是否成侣?这注定是个凄美的故事。(以上是废话)小t和所有世俗的人们一样,期待那百年难遇的日食。驻足街头看天,看日月渐渐走近,小t的脖子那个酸呀(他坚持这个姿势已经有半个多小时啦)。他低下仰起的头,环顾四周。忽然发现身边竟站着位漂亮的mm。天渐渐暗下,这mm在这街头竟然如此耀眼,她是天使吗?站着小t身边的天使。小t对mm惊呼:“缘分呐~~”。mm却毫不含糊:“是啊,500年一遇哦!”(此后省略5000字原创 2020-10-24 10:22:06 · 109 阅读 · 0 评论 -
E - Island Transport
https://vjudge.net/contest/402729#problem/EIn the vast waters far far away, there are many islands. People are living on the islands, and all the transport among the islands relies on the ships. You have a transportation company there. Some routes are原创 2020-10-21 17:58:02 · 114 阅读 · 0 评论 -
G - Control
https://vjudge.net/contest/402729#problem/G You, the head of Department of Security, recently received a top-secret information that a group of terrorists is planning to transport some WMD1from one city (the source) to another one (the destination). Y..原创 2020-10-21 14:17:15 · 193 阅读 · 0 评论 -
F - Food
https://vjudge.net/contest/402729#problem/FYou, a part-time dining service worker in your college’s dining hall, are now confused with a new problem: serve as many people as possible. The issue comes up as people in your college are more and more diffi原创 2020-10-21 12:02:02 · 284 阅读 · 0 评论 -
B - Dining
https://vjudge.net/contest/402729#problem/BCows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others.Farmer John has cooked fabulous meals for his cows, but he forgot to check his menu against原创 2020-10-21 10:42:25 · 111 阅读 · 0 评论 -
M - 非常可乐
https://vjudge.net/contest/402204#problem/M大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐 (都是没有刻度的,且 S==N+M,101>S>0,N>0,M>0)原创 2020-10-19 16:11:15 · 137 阅读 · 0 评论 -
F - Prime Path
https://vjudge.net/contest/402204#problem/FThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of security to ch原创 2020-10-19 15:16:15 · 145 阅读 · 0 评论 -
N - Find a way
https://vjudge.net/contest/402204#problem/NPass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki.Yifenfei’s home is at the countryside, b原创 2020-10-19 14:30:36 · 102 阅读 · 0 评论 -
E - Find The Multiple
https://vjudge.net/contest/402204#problem/EGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there is a corre原创 2020-10-19 12:53:18 · 100 阅读 · 0 评论 -
L - Oil Deposits
https://vjudge.net/contest/402204#problem/LThe 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 the land into原创 2020-10-19 12:42:38 · 126 阅读 · 0 评论 -
I - A计划
https://vjudge.net/contest/402248#problem/I可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主的位置用P表示,时空传输机用#表示,墙用*表示,平地用.表示。骑士们一原创 2020-10-18 20:34:06 · 117 阅读 · 0 评论 -
C - 哈密顿绕行世界问题
https://vjudge.net/contest/402248#problem/C一个规则的实心十二面体,它的 20个顶点标出世界著名的20个城市,你从一个城市出发经过每个城市刚好一次后回到出发的城市。Input前20行的第i行有3个数,表示与第i个城市相邻的3个城市.第20行以后每行有1个数m,m<=20,m>=1.m=0退出.Output输出从第m个城市出发经过每个城市1次又回到m的所有路线,如有多条路线,按字典序输出,每行1条路线.每行首先输出是第几条路线.然后个一原创 2020-10-18 19:57:01 · 240 阅读 · 0 评论 -
K - 迷宫问题
https://vjudge.net/contest/402204#problem/K定义一个二维数组:int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,表示一个原创 2020-10-18 13:53:16 · 129 阅读 · 0 评论 -
C - Catch That Cow
https://vjudge.net/contest/402204#problem/CFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN(0 ≤N≤ 100,000) on a number line and the cow is at a pointK(0 ≤K≤ 100,000) on the ...原创 2020-10-18 13:16:34 · 133 阅读 · 0 评论 -
B - Dungeon Master
https://vjudge.net/contest/402204#problem/BYou 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, south, east, wes原创 2020-10-18 12:49:26 · 129 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索 --A - 棋盘问题
在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= n...原创 2019-08-17 14:15:00 · 108 阅读 · 0 评论 -
D - Constructing Roads
There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only if t...原创 2019-05-22 19:08:49 · 191 阅读 · 0 评论 -
B - Networking
https://vjudge.net/contest/66965#problem/BYou are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible route...原创 2019-05-22 16:04:53 · 189 阅读 · 0 评论 -
A - Jungle Roads
https://vjudge.net/contest/66965#problem/AThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years a...原创 2019-05-21 19:08:00 · 185 阅读 · 0 评论