結果

問題 No.427 テレビ
ユーザー ondy_candy
提出日時 2018-05-05 02:13:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 18,360 KB
最終ジャッジ日時 2024-06-28 01:30:49
合計ジャッジ時間 2,908 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8

def main():

    h, w = [int(i) for i in input().split()]
    
    result = judge(h, w)

    print(result)

def judge(h, w):
    """
    >>> judge(400, 300)
    'TATE'
    >>> judge(540, 720)
    'YOKO'
    """
    
    if w / (h / 4) == 3:
        result = "TATE"
    else:
        result = "YOKO"

    return result

if __name__=='__main__':
    import doctest
    doctest.testmod()
    main()
0