結果

問題 No.964 2020
ユーザー curryudon08curryudon08
提出日時 2020-06-09 14:39:31
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,020 ms
コード長 639 bytes
コンパイル時間 2,085 ms
コンパイル使用メモリ 101,788 KB
実行使用メモリ 14,732 KB
最終ジャッジ日時 2023-08-30 12:24:08
合計ジャッジ時間 4,107 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
14,732 KB
testcase_01 AC 56 ms
14,708 KB
testcase_02 AC 57 ms
14,552 KB
testcase_03 AC 56 ms
14,708 KB
testcase_04 AC 57 ms
14,608 KB
testcase_05 AC 58 ms
14,572 KB
testcase_06 AC 57 ms
14,636 KB
testcase_07 AC 57 ms
14,656 KB
testcase_08 AC 57 ms
14,636 KB
testcase_09 AC 57 ms
14,624 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _0964
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());

            var s = new string[n];
            if(n != 10){
                for(var i = 1; i <= n; i++){
                    s[i-1] = new string(Convert.ToChar(i.ToString()),n);
                }
            }else{
                for(var i = 1; i <= n-1; i++){
                    s[i-1] = new string(Convert.ToChar(i.ToString()),n);
                }
                s[n-1] = new string('0',n);
            }

            Console.WriteLine(string.Join("",s));
        }
    }
}
0