UVA 10881 - Piotr's Ants 蚂蚁
#include
#include
#include
#include
using namespace std;
const int maxn = 10005;
const char s[][10] = {"L","Turning","R"};
struct ant
{
int first; //对输入的蚂蚁进行编号
int p; //位置
int l; //方向,-1为左
翻译
2015-12-16 20:01:51 ·
413 阅读 ·
0 评论