当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6556:The World

题目描述
The World can indicate world travel, particularly on a large scale. You may be lucky enough to be embarking on a six-month overseas trip, or are working, studying or living overseas for an extended period of time. Similarly, this card reinforces Universal understanding and global awareness, and you will have a new appreciation for people and cultures from across the world.

Across the world there are various time zones, leading to time differences. Here you are informed of several famous capitals and their corresponding time zones.

  • Beijing - China - UTC + 8 (China Standard Time)

  • Washington - United States - UTC - 5 (Eastern Standard Time)

  • London - United Kingdom - UTC (Greenwich Mean Time)

  • Moscow - Russia - UTC + 3 (Moscow Time)

  • Given the local time of a city, you are expected to calculate the date and local time of another specific city among the above capitals.
    输入解释
    The first line of input contains a single integer $T$ ≤ 1000 indicating the number of testcases.
    Each testcase consists of three lines. The first line is in the form of “hour:minute AM/PM” (1 ≤ $hour$ ≤ 12, 00 ≤ $minute$ ≤ 59) indicating the local time. Next two lines contain two strings $s_1$, $s_2$. $s_1$ is the name of city corresponding to the given time, while $s_2$ indicates the city you are expected to calculate the local time.
    输出解释
    For each testcase, begin with “Case $i$:”, where $i$ indicate the case number, and then output a single line in the following format“Yesterday/Today/Tomorrow $hour:minute$ AM/PM”, separated by spaces. The first word describes the corresponding date.
    输入样例
    2
    12:00 AM
    London
    Moscow
    4:00 PM
    London
    Beijing
    输出样例
    Case 1: Today 3:00 AM
    Case 2: Tomorrow 12:00 AM
    来自杭电HDUOJ的附加信息
    Recommend chendu

    该题目是Virtual Judge题目,来自 杭电HDUOJ

    源链接: HDU-6556

    最后修改于 2020-10-25T23:32:17+00:00 由爬虫自动更新

    共提交 0

    通过率 --%
    时间上限 内存上限
    2000/1000MS(Java/Others) 262144/262144K(Java/Others)