結果
| 問題 | No.427 テレビ |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:39:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 79,360 KB |
| 最終ジャッジ日時 | 2026-07-07 07:12:00 |
| 合計ジャッジ時間 | 2,001 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
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")
lam6er