結果

問題 No.516 赤と青の風船
ユーザー RyanakRyanak
提出日時 2017-09-07 22:43:56
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 330 bytes
コンパイル時間 2,857 ms
コンパイル使用メモリ 74,508 KB
実行使用メモリ 41,296 KB
最終ジャッジ日時 2024-04-25 02:20:32
合計ジャッジ時間 3,482 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 110 ms
39,776 KB
testcase_02 AC 111 ms
39,956 KB
testcase_03 AC 108 ms
39,892 KB
testcase_04 WA -
testcase_05 AC 123 ms
41,148 KB
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a =0;
        for (int i=1;i<3;i++){
            if (sc.nextLine()=="BLUE")a++;
        }
        if(a<=2)System.out.println("BLUE");
        else System.out.println("RED");
    }
}
0