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