fork download
  1.  
  2. #include<stdio.h>
  3. #include<string.h>
  4. int main(void)
  5. {
  6. int bu[5],t=5,c=0,count=0,i;
  7. for(i=0;i<5;i++)
  8. bu[i]=0;
  9. char str[20];
  10. while(t--)
  11. {
  12. scanf("%s",str);
  13. for(i=0;i<strlen(str)-3;i++)
  14. if(str[i]=='F'&&str[i+1]=='B'&&str[i+2]=='I')
  15. bu[c]++;
  16. c++;
  17. }
  18. for(i=0;i<5;i++)
  19. if(bu[i]!=0) {printf("%d ",i+1); count=1;}
  20. if(count==0)
  21. printf("HE GOT AWAY!");
  22. printf("\n");
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0.01s 2280KB
stdin
N-FBI1 

9A-USKOK 

I-NTERPOL 

G-MI6 

RF-KGB1 
stdout
Standard output is empty