HDU个人测试解题报告
题目链接:https://vjudge.net/contest/357382#problem
密码:QAQ
OPA_heiyaa
嗨嗨嗨
展开
-
HDU--3233--胡搞
Jiajia downloads a lot, a lot more than you can even imagine. Some say that he starts downloading up to 20,000 files together. If 20,000 files try to share a limited bandwidth then it will be a big ha...原创 2020-02-17 10:27:42 · 511 阅读 · 0 评论 -
HDU--1798--贪心
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework after th...原创 2020-02-17 10:25:39 · 514 阅读 · 0 评论 -
HDU--2182--动态规划
A little frog named Fog is on his way home. The path's length is N (1 <= N <= 100), and there are many insects along the way. Suppose theoriginal coordinate of Fog is 0. Fog can stay still or j...原创 2020-02-17 10:23:18 · 592 阅读 · 0 评论 -
HDU--1385--最短路径扩展
These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now there is some cargo that should be delivered from one city to another. The transpor...原创 2020-02-17 10:21:35 · 429 阅读 · 0 评论 -
HDU--1175--BFS
“连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已经酿成大祸,就只能将错就错了,连线不能从外围绕过。玩家鼠标先...原创 2020-02-17 10:20:00 · 244 阅读 · 1 评论 -
HDU--1312--DFS
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'...原创 2020-02-17 10:18:00 · 117 阅读 · 0 评论 -
HDU--1716--全排列问题(完善)
Ray又对数字的列产生了兴趣:现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input每组数据占一行,代表四张卡片上的数字(0<=数字<=9),如果四张卡片都是0,则输入结束。Output对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千位数字相同的在同一行,同一行中每个四位数间用空格分隔。每组输出数据间空一行...原创 2020-02-17 10:14:39 · 495 阅读 · 0 评论 -
HDU--1090--A+B for Input-Output Practice
Your task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a space, one pair of int...原创 2020-02-17 10:11:06 · 101 阅读 · 0 评论 -
HDU--1599--find the mincost route(图论)
杭州有N个景区,景区之间有一些双向的路来连接,现在8600想找一条旅游路线,这个路线从A点出发并且最后回到A点,假设经过的路线为V1,V2,....VK,V1,那么必须满足K>2,就是说至除了出发点以外至少要经过2个其他不同的景区,而且不能重复经过同一个景区。现在8600需要你帮他找一条这样的路线,并且花费越少越好。Input第一行是2个整数N和M(N <= 100, M &l...原创 2020-02-17 10:09:24 · 167 阅读 · 0 评论