結果

問題 No.305 鍵(2)
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-03-28 21:28:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 4,015 ms
コンパイル使用メモリ 97,184 KB
実行使用メモリ 39,872 KB
平均クエリ数 21.77
最終ジャッジ日時 2023-09-23 09:06:29
合計ジャッジ時間 7,692 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

public class Program {
    public static void Main() {
        int key = 0;
        int rtn = 0;
        int temp = 0;
        while(temp < 10) {
            Console.WriteLine("{0:0000000000}", key);
            rtn = int.Parse(Console.ReadLine().Split()[0]);
            if (rtn == temp) {
                key += (int)Math.Pow(10, 9-rtn);
            } else {
                rtn = temp+1;
            }
            temp = rtn;
        }
    }
}
0