結果

問題 No.964 2020
ユーザー mobchanmobchan
提出日時 2023-04-27 00:51:51
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 514 bytes
コンパイル時間 8,674 ms
コンパイル使用メモリ 165,444 KB
実行使用メモリ 182,836 KB
最終ジャッジ日時 2024-04-28 01:08:11
合計ジャッジ時間 9,827 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
28,672 KB
testcase_01 AC 42 ms
28,672 KB
testcase_02 AC 40 ms
29,312 KB
testcase_03 AC 43 ms
28,672 KB
testcase_04 AC 41 ms
29,056 KB
testcase_05 AC 41 ms
28,544 KB
testcase_06 AC 41 ms
29,184 KB
testcase_07 AC 40 ms
28,672 KB
testcase_08 AC 40 ms
28,800 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (77 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

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

class Program
{
    static void Main(string[] args)
    {
        var N = int.Parse(Console.ReadLine());
        var ss = "";
        var flag = 0;

        if (N == 10)
        {
            N--;
            flag = 1;
        }

        for (int i = 1; i <= N; i++)
        {
            for (int j = 0; j < N; j++)
                ss += i.ToString();
        }

        if (flag == 1) ss += "0000000000";
        Console.WriteLine(ss);
    }
}
0