結果

問題 No.516 赤と青の風船
ユーザー fal_rndfal_rnd
提出日時 2017-06-27 19:51:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 2,232 ms
コンパイル使用メモリ 74,188 KB
実行使用メモリ 54,164 KB
最終ジャッジ日時 2024-04-15 03:28:42
合計ジャッジ時間 3,753 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
54,148 KB
testcase_01 AC 121 ms
53,892 KB
testcase_02 AC 121 ms
54,036 KB
testcase_03 AC 117 ms
53,980 KB
testcase_04 AC 121 ms
53,764 KB
testcase_05 AC 121 ms
53,816 KB
testcase_06 AC 118 ms
54,012 KB
testcase_07 AC 119 ms
54,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class A{
	static Scanner s=new java.util.Scanner(System.in);
	public static void main(String[]__){
		int r=0,b=0;
		for(int i=0;i<3;i++)
			if(s.next().equals("RED"))r++;else b++;
		System.out.println(r>b?"RED":"BLUE");
	}
}
0