摘要: #includeusing namespace std;struct Node{ char data; Node *l,*r;};int get(int x){ return (x+1)/2;}void build(Node *t,int l,int r){ // char c; cout>t->d... 阅读全文
posted @ 2014-05-28 19:03 _一千零一夜 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题意:给定每一步的定方向与初始位置 让求出去房间 或者进入循环的步数直接模拟#include#includeusing namespace std;int map[11][11];int v[11][11];int dir[4][2]={-1,0,1,0,0,-1,0,1};int main(){ ... 阅读全文
posted @ 2014-05-28 12:41 _一千零一夜 阅读(126) 评论(0) 推荐(0) 编辑