結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 22 ms
23,652 KB
testcase_02 AC 22 ms
23,652 KB
testcase_03 AC 22 ms
23,652 KB
testcase_04 WA -
testcase_05 AC 23 ms
23,652 KB
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
            int b = 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 { b += 0; }
            }
            if(r>b) { Console.WriteLine("RED"); }
            else { Console.WriteLine("BLUE"); }
            Console.Read();
        }
    }
}
0