Friday, 18 November 2016

12577 - Hajj-e-Akbar Uva Problem Solution.


Solution:

#include <bits/stdc++.h>
using namespace std;
/*
    *
    * Prosen Ghosh
    * American International University - Bangladesh (AIUB)
    *
*/
int main() {
    string str;
    int i = 0;
    while(cin >> str && str != "*"){
        if("Hajj" == str)cout << "Case " << ++i << ": " <<  "Hajj-e-Akbar" << endl;
        else if("Umrah" == str)cout << "Case " << ++i << ": " <<  "Hajj-e-Asghar" << endl;
    }
    return 0;
}

No comments:

Post a Comment