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 |
为什么总是Memory Limit Exceed?有什么解决方法?#include "stdio.h" main() { char str[100][71]={"http://www.acm.org/"}; char s[71],(*p)[71]; int i=0,ii=0; p=str; scanf("%s",s); while(s[0]!='Q') { if(s[0]=='V') {scanf("%s",*++p); ii=++i; printf("%s\n",*p); } else if(s[0]=='B') { i--; if(i<0) {i=0; printf("Ignored\n"); } else printf("%s\n",*--p); } else if(s[0]=='F') { i++; if(i>ii) {i=ii; printf("Ignored\n"); } else printf("%s\n",*++p); } scanf("%s",s); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator