Logo
(追記) (追記ここまで)

16337번 - Die 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB36919315253.333%

문제

The boss of Binary Casino wants to have control over games played in his casino. This is especially true in the case of dice games, as from time to time people try to cheat their way to the victory by manipulating dice even after a throw has already occurred. Therefore, there is a camera installed to monitor the course of every single dice game. Dice recognition, however, is not an easy task and sometimes a camera may produce a faulty image which makes the task of recognition impossible.

There are rasterized data available from a camera which took pictures of several dice. The task is to write a program which determines the value of the top side of the die in the picture or detects that the picture is corrupted. Note that the picture is transformed in such way that the sides incident to the captured top side of the die are parallel to the x and y axis. However, it is unknown which of the four possible rotations of the top side is depicted.

입력

The input specifies the top side of a captured die. It consists of three lines, each with three characters “o” or “:” representing a dent or a smooth surface, respectively

출력

Output a single line with either the number represented by the captured top side of the die or “unknown” if the image is incorrect.

제한

예제 입력 1

o:o
:o:
o:o

예제 출력 1

5

예제 입력 2

::o
:o:
o::

예제 출력 2

3

예제 입력 3

ooo
:::
o:o

예제 출력 3

unknown

힌트

출처

ICPC > Regionals > Europe > Central European Regional Contest > CTU Open Contest > CTU Open Contest 2018 D번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /