UVA12577 Hajj-e-Akbar【水题】

Labayk Allahuma Labayk. Labayk La shareeka laka Labayk. Innal hamda wannimata laka wal mulk. La shareeka Lak
    (Here I am at your service, oh Lord, here I am - here I am. No partner do you have. Here I am. Truly, the praise and the favor are yours, and the dominion. No partner do you have.)

    These are the words chanted by some two million people from world heading, as if pulled by a magnet, to one single spot on Earth. As has happened every year for 14 centuries, Muslim pilgrims gather in Makkah to perform rituals based on those conducted by the Prophet Muhammad during his last visit to the city.
    Performing these rituals, known as the Hajj, is the fifth pillar of Islam and the most significant manifestation of Islamic faith and unity. Undertaking the Hajj at least once is a duty for Muslims who are physically and financially able to make the journey to Makkah. The emphasis on financial ability is meant to ensure that a Muslim takes care of his family first. The requirement that a Muslim be healthy and physically capable of undertaking the pilgrimage is intended to exempt those who cannot endure the rigors of extended travel.
    The pilgrimage is the religious high point of a Muslim’s life and an event that every Muslim dreams of undertaking. Umrah, the lesser pilgrimage, can be undertaken at any time of the year; Hajj, however, is performed during a five-day period from the ninth through the thirteenth of Dhu Al-Hijjah, the twelfth month of the Muslim lunar calendar.
    It is generally presumed that the Hajj performed on Friday is called ‘Hajj-e-Akbar’ and it is a superior kind of Hajj as compared with the Hajj performed on other days of the week.
    But, the correct meaning of the term, as explained by a large number of the commentators of the Holy Quran is that the Umrah, which can be performed at any time throughout the year, was generally called ‘Hajj-e-Asghar’ (the minor Hajj). In order to distinguish hajj from Umrah the former was named ‘Hajj-e-Akbar’ (the greater hajj). Therefore, each and every hajj is Hajj-e-Akbar, no matter whether it is performed on Friday or on any other day. The word ‘Akbar’ (greater) is used only to distinguish it from Umrah which is a minor Hajj.
Input
There will be several lines in the input terminated with a line containing a single ‘*’. This last line should not be processed. Each of the lines will contain either Hajj or Umrah.
Output
For each line of the input, output either ‘Hajj-e-Akbar’ or ‘Hajj-e-Asghar’ in separate lines without quotations. For exact format refer to the sample.
Sample Input
Hajj
Umrah
Hajj
Umrah
*
Sample Output
Case 1: Hajj-e-Akbar
Case 2: Hajj-e-Asghar
Case 3: Hajj-e-Akbar
Case 4: Hajj-e-Asghar

问题链接UVA12577 Hajj-e-Akbar
问题简述:(略)
问题分析
    。
    。
程序说明:(略)
参考链接:(略)
题记:(略)

AC的C++语言程序如下:

/* UVA12577 Hajj-e-Akbar */

#include <bits/stdc++.h>

using namespace std;

int main()
{
    char s[8];
    int caseno = 0;
    while(~scanf("%s", s) && s[0] != '*') {
        if(s[0] == 'H')
            printf("Case %d: Hajj-e-Akbar\n", ++caseno);
        else
            printf("Case %d: Hajj-e-Asghar\n", ++caseno);
    }

    return 0;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值