알고리즘
[알고리즘] 백준 2857 - FBI
blueberrysoda
2024. 8. 5. 23:43
#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";
}
}