Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
一个比较简单的ac代码#include<stdio.h> int main() { int i=0,top; char a[10],b[102][75]={'h','t','t','p',':','/','/','w','w','w','.','a','c','m','.','o','r','g','/'}; while(scanf("%s",a)&&a[0]!='Q') { if(a[0]=='V') scanf("%s",b[++i]),puts(b[i]),top=i; else if(a[0]=='B') if(i) puts(b[--i]); else puts("Ignored"); else if(i<top) puts(b[++i]); else puts("Ignored"); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator