http://poj.org/problem?id=2253题意:The frog distance (humans also call it minimax distance) between two stones therefore is defined as the minimum neces... Read More
http://poj.org/problem?id=3414题意:给你两个容量为a,b的杯子;有3个操作:1:FILL(i);把第i个杯子从水库中装满;2:DROP(i);把第i个杯子清空;3:POUR(i,j);把第i个杯子的水移入到j中,直到第i个杯子空了或者第j个杯子满了为止;分析:本题和上篇... Read More
http://acm.hdu.edu.cn/showproblem.php?pid=1495题意:有3个杯子a b c;a=b+c;然后刚开始时只有a是满的,其它为空的,然后a b c三个之间互相倒,假如说a倒入b中,只有当b满或a空时,才算倒一次;a=4,b=1;c=3;因为刚开始只有a中有;先让... Read More
DescriptionThe 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... Read More
DescriptionOne day , Wang and Dong in the Dubai desert expedition, discovered an ancient castle. Fortunately, they found a map of the castle.The map m... Read More