結果

問題 No.516 赤と青の風船
ユーザー tsunabittsunabit
提出日時 2018-07-01 14:14:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 3,408 ms
コンパイル使用メモリ 73,440 KB
実行使用メモリ 55,900 KB
最終ジャッジ日時 2023-09-13 16:34:56
合計ジャッジ時間 5,235 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,600 KB
testcase_01 AC 123 ms
55,552 KB
testcase_02 AC 122 ms
55,420 KB
testcase_03 AC 123 ms
53,788 KB
testcase_04 AC 123 ms
55,696 KB
testcase_05 AC 124 ms
55,228 KB
testcase_06 AC 124 ms
55,448 KB
testcase_07 AC 123 ms
55,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;

public class No516 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if("RED".equals(sc.next())) {
				count++;
			}
		}
		System.out.println(count > 1 ? "RED" : "BLUE");
	}
}
0