摘要:
#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... 阅读全文
摘要:
题意:给定每一步的定方向与初始位置 让求出去房间 或者进入循环的步数直接模拟#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(){ ... 阅读全文