입력으로 *이 들어오기 전까지 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';
}
}
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/.