[UVa #12577] Hajj-e-Akbar

tolelom·2022년 7월 6일
0

UVa

목록 보기
16/20

문제 설명

문제 링크

입력으로 *이 들어오기 전까지 Hajj, Umrah 두 문자열 중 하나가 입력되면 그에 맞는 출력을 하면 되는 문제

알고리즘

구현

코드

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define INF 1000000000

int t;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    for (int tc = 1; ; tc++){
        string s;
        cin >> s;
        if (s == "*") break;

        if (s == "Hajj")
            cout << "Case " << tc << ": Hajj-e-Akbar" << '\n';
        else
            cout << "Case " << tc << ": Hajj-e-Asghar" << '\n';
    }
}
profile
이것 저것 작성하는 기술 블로그

0개의 댓글