結果
問題 |
No.427 テレビ
|
ユーザー |
|
提出日時 | 2021-01-04 23:22:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 2,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 3,712 ms |
コンパイル使用メモリ | 74,640 KB |
実行使用メモリ | 54,384 KB |
最終ジャッジ日時 | 2024-10-15 08:04:32 |
合計ジャッジ時間 | 5,752 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
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"); } } }