QOJ.ac

QOJ

Time Limit: 1.0 s Memory Limit: 256 MB Total points: 100 Hackable ✓

#11214. Kick Start

Statistics

Kick Start 是 Google 举办的一项全球性在线编程竞赛。参赛者可以在全年举办的在线轮次中进行比赛,在获得职业发展所需技术技能的同时,有机会提升和发展自己的编程能力。

熊猫先生是一位 Kick Start 爱好者,他不会错过任何一年的任何一轮 Kick Start 比赛。他现在正在阅读 2019 年的比赛日程,想知道下一轮 Kick Start 比赛的日期(不包括今天)。你能帮熊猫先生确定那个日期吗?

本题中给出的任何日期格式均为月份缩写后跟日期序数。请注意,月份缩写为 ‘Jan’、‘Feb’、‘Mar’、‘Apr’、‘May’、‘Jun’、‘Jul’、‘Aug’、‘Sept’、‘Oct’、‘Nov’ 和 ‘Dec’;日期序数为 ‘1st’、‘2nd’、‘3rd’、‘4th’、‘5th’ 等。

输入格式

第一行包含测试用例的数量 $T$ ($1 \le T \le 100$)。接下来是 $T$ 组测试用例。

对于每组测试用例,第一行包含一个整数 $n$ ($1 \le n \le 20$),表示今年预定的 Kick Start 轮次数量。

接下来的 $n$ 行,每行包含一个 2019 年的日期,格式为月份缩写后跟日期序数。注意,预定日期可能不是按时间顺序排列的,且所有预定日期各不相同。

最后一行包含今天的日期,同样以月份缩写后跟日期序数的格式给出。

输出格式

对于每组测试用例,输出一行 “Case #x: y”,其中 $x$ 是测试用例编号(从 1 开始),$y$ 是下一轮 Kick Start 比赛的日期,如果今年没有后续的 Kick Start 比赛,则输出 “See you next year”(引号仅为清晰起见)。

样例

样例输入 1

2
3
Jan 1st
Feb 2nd
Mar 3rd
Jan 2nd
8
Mar 24th
Apr 20th
May 26th
Jul 28th
Aug 25th
Sept 29th
Oct 19th
Nov 17th
Nov 17th

样例输出 1

Case #1: Feb 2nd
Case #2: See you next year

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.