Read more -->n台坏掉的电脑(1~N),一个限制距离d
n个坐标(1~N),两种操作(O x 表示修复第x台电脑)(S x y表示询问:第x与第y台电脑能否直接或间接相连)
Read more -->有n个农场(1~N),给出M条单向路描述。每个农场派出一头牛去某个农场(X)参加聚会,聚会结束后要返回,当然它们来回都选择最短路(因为路是单向的,来回可能路径不同),问这n头牛中,来回所走路程最长的那头,它走的总路程是多少?
Read more -->Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full of tourists’ sunscreen, he wants to avoid swimming and instead reach her by jumping.
给出两个素数,求从这个变到那个需要几步。(变法:每步仅改变一位数)
题目链接 http://poj.org/problem?id=3126
Read more -->Read more -->今有草地一片,’#’为草,’.’为空地,草可燃,地不可。有二童子顽劣之至,以焚尽草地为娱。二人可于两处分别点火,瞬间即燃。火势凶猛,所到之处,寸草不生。凡火所在,唯待一刻,便四处蔓延。问:待草烧尽,耗时几何?
Read more -->Pass 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, but Merceki’s home is in the center of city. So yifenfei made arrangements with Merceki to meet at a KFC. There are many KFC in Ningbo, they want to choose one that let the total time to it be most smallest. Now give you a Ningbo map, Both yifenfei and Merceki can move up, down ,left, right to the adjacent road by cost 11 minutes.