【hdu1010】【dfs】【奇偶剪枝】【S->D使用恰好为T的时间】
http://acm.hdu.edu.cn/showproblem.php?pid=1010
【题意】
问是否可能 S->D使用恰好为T的时间
【思路】
偶数点到偶数点(坐标xy之和)需要走偶数次,奇数到奇数也要走偶数次。
【代码】
#include<cstdio>
#include<cmath>
#include<algorithm>
...
原创
2019-02-16 13:40:46 ·
146 阅读 ·
0 评论