Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

一个比较简单的ac代码

Posted by lyyshp at 2014-10-16 15:00:04 on Problem 1028
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator