shunfurh 于 2017.08.31 19:24 提问

Die

One day, WashingBone and gali play a game. WashingBone shoot dice for several times, and then, gali had to guess the points number of every face of the die. Every time gali can only see three face, front, right and top, of the die.

Your task is to help gali to guess the points number of six faces of the die.

Input

There are several test cases. In every test case:

A line consist a interger number n > 0, represent the times of WashingBone shoot dice.

In next n lines, every line consist three initerger number 1 <= a, b, c <= 6, represent the front, right and top of the die.

Output

If the there is no dice can be shoot the same as input, output a "T_T", else if there are several dice can be shoot the same as input, output a "=.-", else output the front, back, right, left, bottom and top face of the die.

Because the die can be rolled, so should output the minimum sequence of the six faces, see the sample output.

Sample Input

3
2 6 1
5 6 2
5 6 1
3
2 6 4
4 2 6
1 4 3
2
1 2 3
4 5 6

Sample Output

T_T
1 6 2 3 5 4
=.-

1个回答

caozhy      2017.09.15 23:46

perl ---die 函数
<br />在P e r l中，d i e函数可以用来在出现错误的时候停止解释程序的运行，并输出一条有意义的<br />出错消息。正如你在前面已经看到的那样，只要调用d i e函数，就能够输出类似下面的消息：<br />   died at scriptname line xxx<br /><br />d i e函数也可以带有一系列的参数，这些参数将取代默认消息而被输出。如果消息的后面<br />没有换行符，那么消息的结尾就附有at scriptname line xxx字样：<br />   die "C
die-to-die和within-die

perl中的die|warn|exit
1.die 用于输出用户自定义的错误信息，并终结perl程序的执行。如， if(\$ret == -1){ die "ret not zero!"; }输出结果为： ret not zero! at test.pl line 9. 2.warn 和die的用法类似，只是warn不会终结perl程序的执行。 3.exit 终结perl程序的执行，并返回指定

What is CPU core/die/package
cpu core/die/package explaination

perl中or die....的原理

PHP中die和exit的区别
die和exit都是语言结构而非函数，用通俗点的话讲，语言结构可以理解为语法本身的一种标识。像+、-、*、/这些也都是语言结构，if、else、for、while，这些都是语言结构。是语法本身的一部分。任何语言都会有这些东西，因为计算机看到+不会认为是应该做加法的。这需要编译器转换为机器码也就是cpu能够识别的指令集。 php执行源码时的整个过程为，首先按照zend_language_scann
shell die