提出詳細


ソースコード

import java.util.Scanner;

public class MiniGallery extends Object
{
	/**
	 * TeraCoder2019 問題Aのプログラム
	 * @param arguments 引数の文字列の配列
	 */
	public static void main(final String[] arguments)
	{
		//標準入力を取得
		final Scanner input = new Scanner(System.in);
		
		//テスト回数を標準入力から参照
		final Integer aNumber = Integer.valueOf(input.nextInt());

		//結果を出力する変数
		String result = "RIGHT";

		//出力ループ
		for(Integer index = 1; index <= aNumber; index++){

			//左の絵の1辺の長さ標準入力から参照
			Integer lestLength = Integer.valueOf(input.next());

			//右の絵の1辺の長さ標準入力から参照
			Integer rightLength = Integer.valueOf(input.next());

			//大きさの判断
			if(lestLength == rightLength){
				result = "EQUAL";
			}else if(lestLength > rightLength){
				result = "LEFT";
			}else {
				result = "RIGHT";
			}

			//文字列の出力
            final StringBuffer aBuffer = new StringBuffer();
            aBuffer.append("Case #");
            aBuffer.append(index);
            aBuffer.append(":");
			System.out.println(aBuffer.toString());
			System.out.println(result);
        }

		return;
	}
}

提出情報

提出時間 2019-11-30 15:27:08
問題 A - ミニギャラリー
ユーザ名 ike_keichan
状態 正解
正解率 50/50
提出出力結果

テストケース情報

# 状態 詳細情報
テストケース 1 正解 詳細を見る
テストケース 2 正解 詳細を見る
テストケース 3 正解 詳細を見る
テストケース 4 正解 詳細を見る
テストケース 5 正解 詳細を見る
テストケース 6 正解 詳細を見る
テストケース 7 正解 詳細を見る
テストケース 8 正解 詳細を見る
テストケース 9 正解 詳細を見る
テストケース 10 正解 詳細を見る
テストケース 11 正解 詳細を見る
テストケース 12 正解 詳細を見る
テストケース 13 正解 詳細を見る
テストケース 14 正解 詳細を見る
テストケース 15 正解 詳細を見る
テストケース 16 正解 詳細を見る
テストケース 17 正解 詳細を見る
テストケース 18 正解 詳細を見る
テストケース 19 正解 詳細を見る
テストケース 20 正解 詳細を見る
テストケース 21 正解 詳細を見る
テストケース 22 正解 詳細を見る
テストケース 23 正解 詳細を見る
テストケース 24 正解 詳細を見る
テストケース 25 正解 詳細を見る
テストケース 26 正解 詳細を見る
テストケース 27 正解 詳細を見る
テストケース 28 正解 詳細を見る
テストケース 29 正解 詳細を見る
テストケース 30 正解 詳細を見る
テストケース 31 正解 詳細を見る
テストケース 32 正解 詳細を見る
テストケース 33 正解 詳細を見る
テストケース 34 正解 詳細を見る
テストケース 35 正解 詳細を見る
テストケース 36 正解 詳細を見る
テストケース 37 正解 詳細を見る
テストケース 38 正解 詳細を見る
テストケース 39 正解 詳細を見る
テストケース 40 正解 詳細を見る
テストケース 41 正解 詳細を見る
テストケース 42 正解 詳細を見る
テストケース 43 正解 詳細を見る
テストケース 44 正解 詳細を見る
テストケース 45 正解 詳細を見る
テストケース 46 正解 詳細を見る
テストケース 47 正解 詳細を見る
テストケース 48 正解 詳細を見る
テストケース 49 正解 詳細を見る
テストケース 50 正解 詳細を見る