結果

問題 No.427 テレビ
ユーザー lam6er
提出日時 2025-03-20 18:39:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,824 KB
実行使用メモリ 54,084 KB
最終ジャッジ日時 2025-03-20 18:39:22
合計ジャッジ時間 1,193 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

H, W = map(int, input().split())
g = math.gcd(H, W)
h = H // g
w = W // g

if h == 4 and w == 3:
    print("TATE")
else:  # Since the problem states that other ratios won't be given
    print("YOKO")
0