摘要: http://openoj.awaysoft.com/JudgeOnline/problem.php?id=1567该题是一道纯模拟题,这道题比较好的解法就是用二维栈,因为每次被折的栈里面的元素都要反过来,这与栈的特性FILO是一样的,可以用栈来就行模拟。#include<stdio.h>#include<stdlib.h>typedef struct s{ int x,y; }POS;struct tt{ POS link[450]; int top; }map[24][24];int top,down,right,left;void T_ZHE(){ for( in 阅读全文
posted @ 2011-08-03 18:55 wutaoKeen 阅读(334) 评论(0) 推荐(0) 编辑