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

建议使用的浏览器:

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

1676:What time is it?

题目描述
An accutron shows time with four digits, from 0000 to 2359. Every digit is represented by 3*3 characters, including '|'s, '_'s and blanks. When the LCD screen works well, the digits look like the following:
 _     _  _     _  _  _  _  _ 

| | | _| _||_||_ |_ ||_||_|
|_| ||_ _| | _||_| ||_| _|


There are two accutrons at hand. One shows the accurate time, and the other is 15 minutes late. For example, at 8:25am, the first accutron shows '0825', while the second shows '0810'.

Unfortunately, there is something wrong with the two LCD screens, namely some parts of the digits missed. Your task is to decide the accurate time, according to the fragmental digits showed on the two accutrons.
输入解释
The first line of the input is a single integer t (1 <= t <= 20), the number of test cases. Each case contains three lines, indicating the time on the accurate accutron and the time on the slow accutron, separated by a blank column. (Please refer to the Sample Input.)
输出解释
For each input, print the accurate time with four digits if it can be ensured, or otherwise the string 'Not Sure'.
输入样例
2
    _  _  _      _     _ 
  | _  _||       _   ||  
  | _ |_   |   | _    |_|
    _  _  _   _  _     _ 
  ||_  _||       _|  ||  
  | _ |_   |   ||     |_|
输出样例
Not Sure
0825

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-1676

最后修改于 2020-10-29T06:10:41+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 10000