結果

問題 No.427 テレビ
ユーザー bellbell
提出日時 2021-02-15 11:57:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 1,942 ms
コンパイル使用メモリ 71,816 KB
実行使用メモリ 56,008 KB
最終ジャッジ日時 2023-09-30 05:37:58
合計ジャッジ時間 4,079 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,888 KB
testcase_01 AC 126 ms
55,756 KB
testcase_02 AC 126 ms
55,604 KB
testcase_03 AC 125 ms
55,664 KB
testcase_04 AC 125 ms
55,916 KB
testcase_05 AC 126 ms
55,884 KB
testcase_06 AC 127 ms
55,696 KB
testcase_07 AC 126 ms
55,640 KB
testcase_08 AC 125 ms
56,008 KB
testcase_09 AC 125 ms
55,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        int h=sc.nextInt();
        int w=sc.nextInt();
        if(h<w){
            System.out.println("YOKO");
        }else if(h>w){
            System.out.println("TATE");
        }
        sc.close();
	}
}

0