알고리즘

[알고리즘] 백준 28113 - 정보섬의 대중교통 (C++)

blueberrysoda 2024. 12. 14. 23:35

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

#include <iostream>
using namespace std;

int main(){
    int N, A, B;
    cin >> N >> A >> B;

    if(A < B && 0 < N){
        cout << "Bus\n";
    }
    else if(A > B && B < N + A){
        cout << "Subway\n";
    }
    else{
        cout << "Anything\n";
    }
    return 0;
}