結果
問題 | No.516 赤と青の風船 |
ユーザー | pirorirori_n712 |
提出日時 | 2018-06-14 01:20:45 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 2,613 ms |
コンパイル使用メモリ | 97,416 KB |
実行使用メモリ | 22,632 KB |
最終ジャッジ日時 | 2023-09-13 04:02:55 |
合計ジャッジ時間 | 3,788 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 47 ms
20,532 KB |
testcase_01 | AC | 48 ms
22,556 KB |
testcase_02 | AC | 48 ms
20,472 KB |
testcase_03 | AC | 48 ms
20,492 KB |
testcase_04 | AC | 48 ms
22,444 KB |
testcase_05 | AC | 47 ms
20,488 KB |
testcase_06 | AC | 48 ms
22,632 KB |
testcase_07 | AC | 48 ms
20,500 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class No516{ static void Main(){ var c=0; for(int i=0;i<3;++i){ if("RED"==Console.ReadLine())c++; if(c==2)break; } var s=(c==2)?"RED":"BLUE"; Console.WriteLine(s); } }