結果

問題 No.427 テレビ
ユーザー Yosuke YamaguchiYosuke Yamaguchi
提出日時 2021-01-04 23:22:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 454 bytes
コンパイル時間 3,694 ms
コンパイル使用メモリ 75,360 KB
実行使用メモリ 54,420 KB
最終ジャッジ日時 2024-04-23 08:14:04
合計ジャッジ時間 4,717 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
54,292 KB
testcase_01 AC 111 ms
54,052 KB
testcase_02 AC 108 ms
53,960 KB
testcase_03 AC 112 ms
53,980 KB
testcase_04 AC 98 ms
53,060 KB
testcase_05 AC 112 ms
54,240 KB
testcase_06 AC 100 ms
53,036 KB
testcase_07 AC 105 ms
53,756 KB
testcase_08 AC 99 ms
53,036 KB
testcase_09 AC 119 ms
54,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/427
public class TV427 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner sc = new Scanner(System.in);

    // String 1つ分を読み込む
    int h = Integer.parseInt(sc.next());
    int w = Integer.parseInt(sc.next());
    if (h > w) {
      System.out.println("TATE");
    } else {
      System.out.println("YOKO");
    }
  }
}
0