結果

問題 No.427 テレビ
ユーザー ondy_candyondy_candy
提出日時 2018-05-05 02:13:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 13,864 KB
最終ジャッジ日時 2023-09-10 10:04:14
合計ジャッジ時間 2,154 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
13,796 KB
testcase_01 AC 67 ms
13,864 KB
testcase_02 AC 69 ms
13,676 KB
testcase_03 AC 71 ms
13,764 KB
testcase_04 AC 67 ms
13,728 KB
testcase_05 AC 67 ms
13,668 KB
testcase_06 AC 67 ms
13,864 KB
testcase_07 AC 68 ms
13,864 KB
testcase_08 AC 68 ms
13,848 KB
testcase_09 AC 68 ms
13,852 KB
権限があれば一括ダウンロードができます

ソースコード

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