#include <cstdio> #include <iostream> #include <cstring> using namespace std; int main(){ char ss[40]={}; while(gets(ss)){ int len=strlen(ss); for(int i=0;i<len;i++){ int j=i; if(ss[i]=='S'||ss[i]=='s'){ j++; if(ss[j]=='A'||ss[j]=='a'){ j++; if(ss[j]=='L'||ss[j]=='l'){ j++; if(ss[j]=='T'||ss[j]=='t'){ puts(ss); break; } } } } } } return 0; } |
Double click to view unformatted code.