ITeye博客

3virus的博客

3virus · 共 1 篇文章

2011 Asia Fuzhou Regional Contest hdu4121 Xiangqi

模拟 #include <iostream> #include <cstdio> #include <memory.h> #include <algorithm> #include <cmath> #include <string> #include <climits> using namespace std; const int dx[5]={0,0,0,1,-1}; const int dy[5]={0,1,-1,0,0}; const int dhx[8]={1,2,2,1,-1,-2,-2,-1}; const int dhy[8]={-2,-1,1,2,2,1,-1,-2}; co…

2012-08-05 13:42 · 模拟 · 分类讨论 · 评论(0)