結果

問題 No.427 テレビ
ユーザー fukusei
提出日時 2017-05-10 22:26:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 3,369 ms
コンパイル使用メモリ 73,816 KB
実行使用メモリ 41,140 KB
最終ジャッジ日時 2024-09-15 07:13:02
合計ジャッジ時間 5,503 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*; 

public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int W = sc.nextInt();
        
        if(H*4 == W*3){
        	System.out.println("YOKO");
        }
        else if(H*3 == W*4){
        	System.out.println("TATE");
        }
    }
}
0