摘要:
// hdu 1175#include #include #include #include using namespace std;struct node{ int x , y ; int step ;}s,e;node qu[1100000];int dir[4][2] = {{-1,0},{0,1},{1,0},{0,-1}};int n , m , bx ,by ,ex ,ey;int map[1001][1000];bool f[1001][1000];bool flag;bool is_ok(int x, int y){ if( x >=1 && x = 1 阅读全文
摘要:
http://codeforces.com/problemset/problem/320/AA magic number is a number formed by concatenation of numbers 1, 14 and 144. We can use each of these nu... 阅读全文