結果

問題 No.304 鍵(1)
ユーザー TaK7907TaK7907
提出日時 2017-10-31 08:06:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 665 bytes
コンパイル時間 1,940 ms
コンパイル使用メモリ 101,564 KB
実行使用メモリ 39,368 KB
平均クエリ数 1.17
最終ジャッジ日時 2023-09-23 14:36:39
合計ジャッジ時間 4,543 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace yukicodeX {
    public class ProgramX {
        static int lastNumber = 0;
        public static string GetNumber() {
            return string.Format( "{0:000}", lastNumber++ );
        }
        public static void Solver(System.IO.TextReader reader) {
            Console.WriteLine( GetNumber() );
            Console.Out.Flush();
            while (reader.ReadLine() == "unlocked") {
                Console.WriteLine( GetNumber() );
                Console.Out.Flush();
            }
        }

        private static void Main() {
            Solver( Console.In );
        }
    }
}
0