1061. Dating (20)
2015-07-17 20:00
281 查看
1061. Dating (20)
时间限制50 ms
内存限制
65536 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
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&Hyscvnm
Sample Output:
THU 14:04
弄了好几个小时,结果一个测试点一直过不了,原来是SUN写错了!!!!!!自己还对着好几遍,还是舍友帮看出来的!!
时间 | 结果 | 得分 | 题目 | 语言 | 用时(ms) | 内存(kB) | 用户 |
---|---|---|---|---|---|---|---|
7月17日 20:00 | 答案正确 | 20 | 1061 | C++ (g++ 4.7.2) | 1 | 364 | datrilla |
测试点
测试点 | 结果 | 用时(ms) | 内存(kB) | 得分/满分 |
---|---|---|---|---|
0 | 答案正确 | 1 | 240 | 10/10 |
1 | 答案正确 | 1 | 364 | 2/2 |
2 | 答案正确 | 1 | 236 | 2/2 |
3 | 答案正确 | 1 | 364 | 2/2 |
4 | 答案正确 | 1 | 364 | 2/2 |
5 | 答案正确 | 1 | 256 | 2/2 |
相关文章推荐
- hdu 1241
- uva 10763 多种方法
- 232——Implement Queue using Stacks(栈与队列)
- 【转】机器学习中导数最优化方法(基础篇)
- hdu 4810 Wall Painting 位操作
- SGU131--NYOJ435
- Spring AOP三种配置详细介绍
- CactiEZ中文版说明
- Linux系统防CC攻击自动拉黑IP增强版Shell脚本
- hdu 4825 Xor Sum 位操作 字典树
- Vijos P1369难解的问题
- 【asp.net】常用内置对象(Request,Response、server、Cookies)
- Physical Examination
- iOS端使用二维码扫描(ZBarSDK)和生成(libqrencode)功能
- leetcode Database3
- SVG六基本元素
- 在python中使用liblinear
- Win7系统封装制作的全过程
- 【转】LM(Levenberg-Marquard) Matlab及C语言实现
- hdu 2604 Queuing 递推/DP 矩阵快速幂 Trie数辅助