結果

問題 No.1642 Registration
ユーザー cccccc
提出日時 2022-07-29 10:29:52
言語 C#
(.NET 7.0.402)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 13,563 ms
コンパイル使用メモリ 146,496 KB
実行使用メモリ 159,844 KB
最終ジャッジ日時 2023-09-26 06:45:37
合計ジャッジ時間 14,224 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 42 ms
25,908 KB
testcase_02 AC 44 ms
25,900 KB
testcase_03 AC 43 ms
26,208 KB
testcase_04 AC 44 ms
26,224 KB
testcase_05 AC 44 ms
25,860 KB
testcase_06 AC 44 ms
25,940 KB
testcase_07 WA -
testcase_08 AC 44 ms
159,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 165 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

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

class Program
{
    static void Main()
    {
        var inp = Console.ReadLine();
        if (inp.Length == 1)
        {
            Console.WriteLine(inp.PadLeft(3, '0'));
        }
        else if (inp.Length == 2)
        {
            Console.WriteLine(inp.PadLeft(1, '0'));
        }
        else
        {
            Console.WriteLine(inp);
        }
    }
}
0