摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1175 / 难点是 判断当前的方向与上一次的方向是否相同 用优先队列取出每次拐弯次数的最小的 然后在进行处理 / include include include using namespace std; int m 阅读全文
摘要:
http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=3456 include include include include using namespace std; int tri[4]; int triN(in 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1016 / 题意; 给你一个数n ,求出所有的排列 这些排列的特征是任意相邻的两数只和是素数,而且首位只和也是素数 / include include include int nZ,t,k; int primAyy 阅读全文