結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
EIto60754435
|
| 提出日時 | 2017-06-15 21:59:06 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 617 bytes |
| コンパイル時間 | 885 ms |
| コンパイル使用メモリ | 108,712 KB |
| 実行使用メモリ | 25,644 KB |
| 最終ジャッジ日時 | 2024-09-25 03:08:58 |
| 合計ジャッジ時間 | 1,466 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 3 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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();
}
}
}
EIto60754435