알고리즘

[알고리즘] 백준 26209 - Intercepting Information (C++)

blueberrysoda 2025. 2. 20. 23:47

[문제 링크] : https://www.acmicpc.net/problem/26209

#include <iostream>
using namespace std;

int main(){
    bool flag = false;
    int inp;
    for(int i=0; i<8; i++){
        cin >> inp;
        if(inp == 9){
            flag = true;
        }
    }

    if(flag == true){
        cout << "F\n";
    }
    else{
        cout << "S\n";
    }
    return 0;
}