2014年3月14日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2175做得好辛苦的一道规律题,至于为什么辛苦。。dont ask me why。。。n号盘子出现的位置是(1,3,5,7......)*2^(n-1)#include using namespace std ;typedef __int64 ll ;int main(){ ll a[105] ; a[1]=1 ; for(int i=2 ;i<64 ;i++) a[i]=a[i-1]*2 ; ll n,m ; while(~scanf("%I64d%I64d",&n... 阅读全文
posted @ 2014-03-14 23:15 LegendaryAC 阅读(200) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1535水题单向图,从1到P所有点,再从所有点回到1,问最小花费先求一遍1的最短路,然后反向建图,再求一遍1的最短路#include #include using namespace std ;const int I... 阅读全文
posted @ 2014-03-14 19:32 LegendaryAC 阅读(200) 评论(0) 推荐(0) 编辑