文件名称:no_1014
介绍说明--下载内容均来自于网络,请自行研究使用
浙大PAT no_1014福尔摩斯的约会。
大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期四 14:04”,因为前面两字符串中第1对相同的大写英文字母(大小写有区分)是第4个字母 D ,代表星期四;第2对相同的字符是 E ,那是第5个英文字母,代表一天里的第14个钟头(于是一天的0点到23点由数字0到9、以及大写字母A到N表示);后面两字符串第1对相同的英文字母 s 出现在第4个位置(从0开始计数)上,代表第4分钟。现给定两对字符串,请帮助福尔摩斯解码得到约会的时间。
输入格式:
输入在4行中分别给出4个非空、不包含空格、且长度不超过60的字符串。
输出格式:
在一行中输出约会的时间,格式为“DAY HH:MM”,其中“DAY”是某星期的3字符缩写,即MON表示星期一,TUE表示星期二,WED表示星期三,THU表示星期四,FRI表示星期五,SAT表示星期六,SUN表示星期日。题目输入保证每个测试存在唯一解。
输入样例:
3485djDkxh4hhGE
2984akDfkkkkggEdsb
s&hgsfdk
d&Hyscvnm
输出样例:
THU 14:04-Detective Holmes received a strange note: "we meet it! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s& hgsfdk d& Hyscvnm". The detective soon understood, note strange code is actually the appointment "14:04 Thursday", because the first in front of two strings of the same capital English letters (case distinction) is the fourth letter ' D' , delegates Thursday second is the ' of the same characters E', it was the fifth English letters, fourteenth hours a day in (and 0 day to 23 points by the numbers 0 to 9, and the capital letter A to N) behind the two string first on the same English letter ' s' appears in the fourth position (starting from 0 count) on fourth minutes, representative. Now given the two string, please help Holmes decoded by appointment.
Input format:
Input in the 4 row are 4 non empty, does not contain spaces, and the length of not more than 60 characters.
Output format:
Output time in a row, the format of "DAY HH:MM", where "DAY" is 3 ch
大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期四 14:04”,因为前面两字符串中第1对相同的大写英文字母(大小写有区分)是第4个字母 D ,代表星期四;第2对相同的字符是 E ,那是第5个英文字母,代表一天里的第14个钟头(于是一天的0点到23点由数字0到9、以及大写字母A到N表示);后面两字符串第1对相同的英文字母 s 出现在第4个位置(从0开始计数)上,代表第4分钟。现给定两对字符串,请帮助福尔摩斯解码得到约会的时间。
输入格式:
输入在4行中分别给出4个非空、不包含空格、且长度不超过60的字符串。
输出格式:
在一行中输出约会的时间,格式为“DAY HH:MM”,其中“DAY”是某星期的3字符缩写,即MON表示星期一,TUE表示星期二,WED表示星期三,THU表示星期四,FRI表示星期五,SAT表示星期六,SUN表示星期日。题目输入保证每个测试存在唯一解。
输入样例:
3485djDkxh4hhGE
2984akDfkkkkggEdsb
s&hgsfdk
d&Hyscvnm
输出样例:
THU 14:04-Detective Holmes received a strange note: "we meet it! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s& hgsfdk d& Hyscvnm". The detective soon understood, note strange code is actually the appointment "14:04 Thursday", because the first in front of two strings of the same capital English letters (case distinction) is the fourth letter ' D' , delegates Thursday second is the ' of the same characters E', it was the fifth English letters, fourteenth hours a day in (and 0 day to 23 points by the numbers 0 to 9, and the capital letter A to N) behind the two string first on the same English letter ' s' appears in the fourth position (starting from 0 count) on fourth minutes, representative. Now given the two string, please help Holmes decoded by appointment.
Input format:
Input in the 4 row are 4 non empty, does not contain spaces, and the length of not more than 60 characters.
Output format:
Output time in a row, the format of "DAY HH:MM", where "DAY" is 3 ch
(系统自动生成,下载前可以参看下载内容)
下载文件列表
no_1014
.......\bin
.......\...\Debug
.......\...\.....\no_1014.exe
.......\no_1014.c
.......\no_1014.cbp
.......\no_1014.depend
.......\no_1014.layout
.......\obj
.......\...\Debug
.......\...\.....\no_1014.o