题目:option=com_onlinejudge&Itemid=8&page=show_problem&problem=1008">uva10067 Playing with Wheels 题意:给出一个机器,有四个循环的轮子.见图,然后给出一个初始数和目标数,然后期间不能出现的数字,每一分钟能够拨动一个数.问你最短须要的时间. 分析:这个题目能够转化为求图的最短路. 由于有对于一个当前状态.有8种能够转化为的状态,那么我们能够把每一种状态转化为一个点,然后状态之…
B. Legacy 题目连接: http://codeforces.com/contest/786/problem/B Description Rick and his co-workers have made a new radioactive formula and a lot of bad guys are after them. So Rick wants to give his legacy to Morty before bad guys catch them. There are…