結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 88 ms
39,600 KB
testcase_02 WA -
testcase_03 AC 89 ms
37,128 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 WA -
testcase_08 RE -
testcase_09 RE -
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, rtn);
            } else {
                rtn = temp+1;
            }
            temp = rtn;
        }
    }
}
0