結果

問題 No.1642 Registration
ユーザー cccccc
提出日時 2022-07-29 10:32:31
言語 C#
(.NET 7.0.402)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 7,068 ms
コンパイル使用メモリ 145,608 KB
実行使用メモリ 161,424 KB
最終ジャッジ日時 2023-09-26 06:47:19
合計ジャッジ時間 8,141 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
26,188 KB
testcase_01 AC 43 ms
26,336 KB
testcase_02 AC 45 ms
26,164 KB
testcase_03 AC 43 ms
25,896 KB
testcase_04 AC 45 ms
28,184 KB
testcase_05 AC 44 ms
26,076 KB
testcase_06 AC 43 ms
25,940 KB
testcase_07 AC 45 ms
27,968 KB
testcase_08 AC 43 ms
161,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 125 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(3, '0'));
        }
        else
        {
            Console.WriteLine(inp);
        }
    }
}
0