[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
이것 저것 작성하는 기술 블로그

1개의 댓글

comment-user-thumbnail
2025년 9월 14일

Kiswa Guest provides a reliable stay option for travelers seeking comfort and convenience during their pilgrimage. With well-maintained rooms, essential amenities, and easy access to key locations, it caters to the needs of guests. Choosing Kiswa Guest adds ease and peace of mind to your spiritual journey. Visit https://kiswaguest.com/hotel-booking/.

답글 달기