結果

問題 No.516 赤と青の風船
ユーザー YOSHIYOSHI
提出日時 2021-03-17 21:56:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 422 bytes
コンパイル時間 4,571 ms
コンパイル使用メモリ 74,364 KB
実行使用メモリ 50,356 KB
最終ジャッジ日時 2024-04-27 14:08:29
合計ジャッジ時間 4,210 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
50,356 KB
testcase_01 AC 48 ms
50,276 KB
testcase_02 AC 50 ms
50,344 KB
testcase_03 AC 49 ms
50,296 KB
testcase_04 AC 49 ms
50,208 KB
testcase_05 AC 49 ms
50,212 KB
testcase_06 AC 50 ms
49,880 KB
testcase_07 AC 49 ms
49,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000516_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int r =0;
		for(int i = 0; i < 3; i++) {
			String c = br.readLine();
			if("RED".equals(c)) r++;
		}
		System.out.println(r > 1 ? "RED" : "BLUE");
	}
}
0