#include<stdio.h> #include<string.h> main() { char t[1000]; int l,i; while(gets(t)!=NULL) { l=strlen(t); for(i=0;i<l;i++) { if((t[i]=='s'||t[i]=='S')&&(t[i+1]=='a'||t[i+1]=='A')&&(t[i+2]=='l'||t[i+2]=='L')&&(t[i+3]=='t'||t[i+3]=='T')) puts(t); } } } |
Double click to view unformatted code.