#include <iostream>
#include <string>
using namespace std;
int main(){
string S;
int t = 1;
bool f = false;
while(t < 6){
getline(cin, S);
if(S.find("FBI") != string::npos){
cout << t << ' ';
f = true;
}
t++;
}
if(f == false){
cout << "HE GOT AWAY!\n";
}
}
'알고리즘' 카테고리의 다른 글
[알고리즘] 백준 2711 - 오타맨 고창영 (0) | 2024.08.07 |
---|---|
[알고리즘] 백준 11000 - 강의실 배정 (0) | 2024.08.06 |
[알고리즘] 백준 1022 - 소용돌이 예쁘게 출력하기 (0) | 2024.08.04 |
[알고리즘] 백준 2467 - 용액 (0) | 2024.08.03 |
[알고리즘] 백준 11557 - Yangjojang of The Year (0) | 2024.08.02 |