問題一覧 > 通常問題

No.427 Television

レベル : / AI推定難易度 : 73 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 784
作問者 : nmnmnmnmnmnmnm / テスター : りあん
お気に入りにしたユーザー ProblemId : 1294 / 自分の提出
問題文最終更新日: 2026-06-25 03:01:09
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 150 (順位表) の他の問題:

Problem Statement

In the country of Yukikoda, there are two types of TV screens: the vertical type, whose "height:width" ratio is "4:3", and the horizontal type, whose ratio is "3:4".
The height and width of a certain TV screen in Yukikoda are given as integers.
Determine "TATE" if it is the vertical type, and "YOKO" if it is the horizontal type.

Input

H W

H is the height of the TV screen. H is an integer. $3 \le H \le 1000000000=10^9$.
W is the width of the TV screen. W is an integer. $3 \le W \le 1000000000=10^9$.
No input is given whose ratio "H:W" is anything other than "4:3" or "3:4".

Output

Output "TATE" if the TV is the vertical type, or "YOKO" if it is the horizontal type, on one line, followed by a newline.

Sample

Sample 1
Input
400 300
Output
TATE

The height is 400 and the width is 300.
Since the "height:width" ratio is "4:3", this is the vertical type.

Sample 2
Input
540 720
Output
YOKO

This is the horizontal type.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。