Algorithm

손승열(Son Seungyeol)

[Codeforces][C++] Game with Board

Educational Codeforces Round 150 Problem A

손승열(Son Seungyeol)
[Codeforces][C++] Game with Board

⌨️ Solution Code

cpp
#include <bits/stdc++.h>
 
using namespace std;
 
string solve(int n){
    if(n<5) return "Bob\n";
    return "Alice\n";
}
 
int main()
{
    int t, n;
 
    cin>>t;
    while(t--){
        cin>>n;
        cout<<solve(n);
    }
}

Related posts


Made with React, Gatsby and DatoCMS by @smastrom

Contribute or star on GitHub

© 2022-2023 손승열 for 🅒🅞🅝🅣🅔🅝🅣🅢

Have a nice day, everyone! 😊