結果

問題 No.427 テレビ
ユーザー yagi2yagi2
提出日時 2017-04-15 22:59:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 2,072 ms
コンパイル使用メモリ 71,504 KB
実行使用メモリ 56,008 KB
最終ジャッジ日時 2023-09-25 22:31:03
合計ジャッジ時間 4,280 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,640 KB
testcase_01 AC 121 ms
55,640 KB
testcase_02 AC 120 ms
55,568 KB
testcase_03 AC 122 ms
55,640 KB
testcase_04 AC 121 ms
55,728 KB
testcase_05 AC 122 ms
56,008 KB
testcase_06 AC 120 ms
55,756 KB
testcase_07 AC 121 ms
55,756 KB
testcase_08 AC 124 ms
55,544 KB
testcase_09 AC 122 ms
55,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long H = Long.parseLong(sc.next());
        Long W = Long.parseLong(sc.next());
        
        if (H > W) {
            System.out.println("TATE");
        } else {
            System.out.println("YOKO");
        }
    }
}
0