結果
| 問題 |
No.427 テレビ
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:16:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 212 bytes |
| コンパイル時間 | 195 ms |
| コンパイル使用メモリ | 82,752 KB |
| 実行使用メモリ | 53,748 KB |
| 最終ジャッジ日時 | 2025-03-20 20:17:03 |
| 合計ジャッジ時間 | 1,243 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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