【C++】PAT(advanced level)1061. Dating (20)
来源:互联网 发布:淘宝不能货到付款 编辑:程序博客网 时间:2024/05/18 11:47
1061. Dating (20)
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
a和中文题一样
详见
【C++】浙大PAT (Basic Level)1014. 福尔摩斯的约会 (20)
- 【C++】PAT(advanced level)1061. Dating (20)
- 【PAT】【Advanced Level】1061. Dating (20)
- PAT (Advanced Level) 1061. Dating (20) 字符匹配
- PAT (Advanced Level) Practise 1061 Dating (20)
- PAT (Advanced Level) Practise 1061 Dating (20)
- PAT (Advanced) 1061. Dating (20)
- 1061. Dating (20)【字符串操作】——PAT (Advanced Level) Practise
- Pat(Advanced Level)Practice--1061(Dating)
- 【c++】PAT (Advanced Level)1008. Elevator (20)
- 【c++】PAT (Advanced Level)1035. Password (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)
- 【c++】PAT (Advanced Level) 1001. A+B Format (20)
- 富坚义博身负七宗罪
- 王牌技术
- 特殊的数字
- 让你的 C 程序更有效率的 10 种方法
- 令人垂涎的互联网巨头办公环境大起底
- 【C++】PAT(advanced level)1061. Dating (20)
- 老情歌
- Android获取SIM卡状态
- NodeJS web 实践 - jade
- 2 - Much ADO about Data Access: Using the Data Access Application Block
- 只要能把自己的事做好,并让自己快乐,你就领先于大多数人了
- Mysql数据库连接类
- C#中的进制转换
- C#迁移之callXBFLibrary - 部署