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 |
为何会Time Limit Exceed#include<iostream.h> #include<string.h> #include<stdio.h> void main() { char a[201]; char s[11]; cin>>s; while(strcmp(s,"ENDOFINPUT")!=0) { if(strcmp(s,"START")==0) { gets(a); for(int i=0;a[i]!='\0';i++) { if(a[i]>=65&&a[i]<=68) a[i]=a[i]+21; else if(a[i]>=69&&a[i]<=90) a[i]=a[i]-5; else a[i]=a[i]; cout<<a[i]; } cout<<endl; } cin>>s; } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator