結果

問題 No.516 赤と青の風船
ユーザー akichiakichi
提出日時 2017-08-24 23:58:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 1,981 ms
コンパイル使用メモリ 100,980 KB
実行使用メモリ 22,552 KB
最終ジャッジ日時 2023-08-05 17:20:45
合計ジャッジ時間 3,054 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
18,396 KB
testcase_01 AC 50 ms
20,320 KB
testcase_02 AC 52 ms
22,396 KB
testcase_03 AC 50 ms
20,424 KB
testcase_04 AC 50 ms
22,520 KB
testcase_05 AC 53 ms
20,552 KB
testcase_06 AC 51 ms
22,552 KB
testcase_07 AC 51 ms
20,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
class Program {
    static void Main() {
        int red = 0;
        for (int i = 0; i < 3; i++) {
            if (Console.ReadLine() == "RED") red++;
        }
        Console.WriteLine(1 < red ? "RED" : "BLUE");
    }
}
0