結果

問題 No.2246 1333-like Number
ユーザー bluemeganebluemegane
提出日時 2023-03-17 22:42:07
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 2,522 ms
コンパイル使用メモリ 107,668 KB
実行使用メモリ 23,964 KB
最終ジャッジ日時 2023-10-18 15:41:34
合計ジャッジ時間 4,209 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 24 ms
23,928 KB
testcase_02 AC 23 ms
23,928 KB
testcase_03 AC 23 ms
23,928 KB
testcase_04 AC 97 ms
23,928 KB
testcase_05 WA -
testcase_06 AC 79 ms
23,928 KB
testcase_07 WA -
testcase_08 RE -
testcase_09 RE -
testcase_10 WA -
testcase_11 AC 68 ms
23,928 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 62 ms
23,928 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 42 ms
23,928 KB
testcase_20 RE -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Collections.Generic;
using System;

public class Hello
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        getAns(n);
    }
    static void getAns(int n)
    {
        var a = new List<int>() { 0 };
        for (int i = 1; i <= 9; i++)
            for (int j = i + 1; j < 9; j++) a.Add(i * 10 + j);
        var s = n / 36;
        var r = n % 36;
        Console.Write(a[r]);
        var c = a[r] % 10;
        for (int i = 0; i < s; i++) Console.Write(c);
        Console.WriteLine();
    }
}
0