結果
問題 |
No.516 赤と青の風船
|
ユーザー |
![]() |
提出日時 | 2017-06-15 21:55:39 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 569 bytes |
コンパイル時間 | 945 ms |
コンパイル使用メモリ | 108,204 KB |
実行使用メモリ | 27,432 KB |
最終ジャッジ日時 | 2024-09-25 03:08:56 |
合計ジャッジ時間 | 1,617 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; 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"); } } } }