PAT(甲级)Dating (20)
来源:互联网 发布:mac照片图库拷贝 编辑:程序博客网 时间:2024/05/16 11:05
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are actually referring to the coded time "Thursday 14:04" -- since the first common capital English letter (case sensitive) shared by the first two strings is the 4th capital letter 'D', representing the 4th day in a week; the second common character is the 5th capital letter 'E', representing the 14th hour (hence the hours from 0 to 23 in a day are represented by the numbers from 0 to 9 and the capital letters from A to N, respectively); and the English letter shared by the last two strings is 's' at the 4th position, representing the 4th minute. Now given two pairs of strings, you are supposed to help Sherlock decode the dating time.
Input Specification:
Each input file contains one test case. Each case gives 4 non-empty strings of no more than 60 characters without white space in 4 lines.
Output Specification:
For each test case, print the decoded time in one line, in the format "DAY HH:MM", where "DAY" is a 3-character abbreviation for the days in a week -- that is, "MON" for Monday, "TUE" for Tuesday, "WED" for Wednesday, "THU" for Thursday, "FRI" for Friday, "SAT" for Saturday, and "SUN" for Sunday. It is guaranteed that the result is unique for each case.
Sample Input:3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&HyscvnmSample Output:
THU 14:04
- PAT(甲级)Dating (20)
- 【PAT甲级】1061. Dating (20)
- 1061. Dating (20)PAT甲级
- PAT甲级1061. Dating (20)
- PAT 甲级 1061. Dating (20)
- PAT甲级 1061. Dating (20)
- 1061. Dating (20)-PAT甲级真题
- PAT甲级练习1061. Dating (20)
- PAT-A1061 Dating (20)(模拟)
- 1061. Dating (20)-PAT
- 【PAT】1061. Dating (20)
- PAT 1061. Dating (20)
- pat 1061. Dating (20)
- pat 1061. Dating (20)
- PAT 1061. Dating (20)
- PAT 1061. Dating (20)
- PAT-Dating (20)
- 【PAT】A1061. Dating (20)
- form表单提交的几种方法
- 逐浪cms2 x3.8版本预览:默认模板风格之全新的检索中心模块
- 玩转Google开源C++单元测试框架Google Test系列(gtest)之四 - 参数化
- Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on require
- qt 文本大小设置
- PAT(甲级)Dating (20)
- MySql基本查询、连接查询、子查询、正则表达查询
- 逐浪CMS2 X3.5功能预览:微信打赏与在线捐赠功能发布
- 【Android】Android中Intent传递简单数据
- 进度条指示
- EnumerateSystemHandle
- CentOS上安装SQL Server vNext CTP1
- 深入理解Java虚拟机6~虚拟机字节码执行引擎
- 进程的调度算法