CF45A.Codecraft III

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Today Vasya visited a widely known site and learned that the continuation of his favourite game Codecraft II will appear after exactly k months. He looked at the calendar and learned that at the moment is the month number s. Vasya immediately got interested in what month Codecraft III will appear. Help him understand that.

All the twelve months in Vasya's calendar are named using their usual English names: January, February, March, April, May, June, July, August, September, October, November, December.

今天,瓦西娅访问了一个广为人知的网站,得知他最喜爱的游戏《Codecraft II》的续作《Codecraft III》将在恰好 kk 个月后发布。他查看了日历,发现当前月份编号为 ss。瓦西娅立刻想知道《Codecraft III》将在哪个月份发布。请帮助他弄清楚这一点。

瓦西娅的日历中,全部十二个月均使用其标准英文名称表示:January(一月)、February(二月)、March(三月)、April(四月)、May(五月)、June(六月)、July(七月)、August(八月)、September(九月)、October(十月)、November(十一月)、December(十二月)。

输入格式

The first input line contains the name of the current month. It is guaranteed that it is a proper English name of one of twelve months. The first letter is uppercase, the rest are lowercase. The second line contains integer k (0 ≤ k ≤ 100) — the number of months left till the appearance of Codecraft III.

第一行输入为当前月份的名称。保证该名称是十二个月份之一的正确英文名称,首字母大写,其余字母小写。第二行输入为整数 kk0k1000 ≤ k ≤ 100),表示距离 Codecraft III 发布还剩的月份数。

输出格式

Print starting from an uppercase letter the name of the month in which the continuation of Codeforces II will appear. The printed name must be contained in the list January, February, March, April, May, June, July, August, September, October, November, December.

从大写字母开始打印 Codeforces II 继续举办的月份名称。所打印的名称必须属于以下列表之一:January、February、March、April、May、June、July、August、September、October、November、December。

输入输出样例

  • 输入#1

    November
    3

    输出#1

    February
  • 输入#2

    May
    24

    输出#2

    May

输入解题思路,AI测评打分。不知道怎么写?

首页