結果

問題 No.427 テレビ
ユーザー yagi2yagi2
提出日時 2017-04-15 22:59:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 379 bytes
コンパイル時間 1,864 ms
コンパイル使用メモリ 74,464 KB
実行使用メモリ 41,180 KB
最終ジャッジ日時 2024-07-18 18:10:50
合計ジャッジ時間 3,582 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
40,064 KB
testcase_01 AC 116 ms
41,180 KB
testcase_02 AC 96 ms
39,660 KB
testcase_03 AC 111 ms
40,816 KB
testcase_04 AC 109 ms
41,008 KB
testcase_05 AC 107 ms
41,028 KB
testcase_06 AC 113 ms
40,908 KB
testcase_07 AC 110 ms
40,280 KB
testcase_08 AC 94 ms
39,640 KB
testcase_09 AC 111 ms
40,812 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