結果

問題 No.516 赤と青の風船
ユーザー EIto60754435EIto60754435
提出日時 2017-06-15 21:55:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 569 bytes
コンパイル時間 804 ms
コンパイル使用メモリ 106,264 KB
実行使用メモリ 23,684 KB
最終ジャッジ日時 2023-10-25 07:53:53
合計ジャッジ時間 1,499 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;


namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int r = 0;
            string[] str = new string[3];
            str[0]= Console.ReadLine();
            str[1] = Console.ReadLine();
            str[2] = Console.ReadLine();
            for (int n = 0; n == 2; n++)
            {
                if(str[n] == "RED") { r += 1; }
                else { return; }
            }
            if(r <= 2) { Console.WriteLine("RED"); }
            else { Console.WriteLine("BLUE"); }
        }
    }
}
0