結果

問題 No.427 テレビ
ユーザー yamax3232yamax3232
提出日時 2018-03-19 12:02:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 1,960 ms
コンパイル使用メモリ 71,880 KB
実行使用メモリ 56,356 KB
最終ジャッジ日時 2023-08-30 03:34:11
合計ジャッジ時間 4,334 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,840 KB
testcase_01 AC 125 ms
55,840 KB
testcase_02 AC 126 ms
56,356 KB
testcase_03 AC 124 ms
55,924 KB
testcase_04 AC 123 ms
55,820 KB
testcase_05 AC 123 ms
56,104 KB
testcase_06 AC 123 ms
56,048 KB
testcase_07 AC 123 ms
55,804 KB
testcase_08 AC 122 ms
55,768 KB
testcase_09 AC 123 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int h=kb.nextInt();
		int w=kb.nextInt();
		//4:3
		if(3*h==4*w){
			System.out.println("TATE");
		}
		//3:4
		else if(4*h==3*w){
			System.out.println("YOKO");
		}
	}
}
0