結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー 👑 kakel-sankakel-san
提出日時 2023-09-04 17:31:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 1,143 bytes
コンパイル時間 1,719 ms
コンパイル使用メモリ 69,640 KB
実行使用メモリ 24,924 KB
最終ジャッジ日時 2023-09-04 17:31:30
合計ジャッジ時間 16,156 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,768 KB
testcase_01 AC 58 ms
20,832 KB
testcase_02 AC 58 ms
20,640 KB
testcase_03 AC 57 ms
20,652 KB
testcase_04 AC 58 ms
20,668 KB
testcase_05 AC 59 ms
22,800 KB
testcase_06 AC 59 ms
22,780 KB
testcase_07 AC 58 ms
20,664 KB
testcase_08 AC 68 ms
18,816 KB
testcase_09 AC 59 ms
20,652 KB
testcase_10 AC 58 ms
20,640 KB
testcase_11 AC 59 ms
20,748 KB
testcase_12 AC 58 ms
20,724 KB
testcase_13 AC 59 ms
18,596 KB
testcase_14 AC 58 ms
18,676 KB
testcase_15 AC 58 ms
18,672 KB
testcase_16 AC 59 ms
20,756 KB
testcase_17 AC 59 ms
22,616 KB
testcase_18 AC 59 ms
20,664 KB
testcase_19 AC 60 ms
20,640 KB
testcase_20 AC 58 ms
18,612 KB
testcase_21 AC 58 ms
20,776 KB
testcase_22 AC 59 ms
20,708 KB
testcase_23 AC 59 ms
20,732 KB
testcase_24 AC 59 ms
20,664 KB
testcase_25 AC 59 ms
20,756 KB
testcase_26 AC 58 ms
22,768 KB
testcase_27 AC 59 ms
20,796 KB
testcase_28 AC 59 ms
20,796 KB
testcase_29 AC 58 ms
20,780 KB
testcase_30 AC 59 ms
20,752 KB
testcase_31 AC 59 ms
18,780 KB
testcase_32 AC 58 ms
20,760 KB
testcase_33 AC 60 ms
22,712 KB
testcase_34 AC 59 ms
20,744 KB
testcase_35 AC 59 ms
22,688 KB
testcase_36 AC 58 ms
22,676 KB
testcase_37 AC 58 ms
22,780 KB
testcase_38 AC 58 ms
18,828 KB
testcase_39 AC 58 ms
20,736 KB
testcase_40 AC 58 ms
20,772 KB
testcase_41 AC 59 ms
20,652 KB
testcase_42 AC 58 ms
20,632 KB
testcase_43 AC 60 ms
18,588 KB
testcase_44 AC 58 ms
20,664 KB
testcase_45 AC 59 ms
22,756 KB
testcase_46 AC 60 ms
22,616 KB
testcase_47 AC 59 ms
22,724 KB
testcase_48 AC 58 ms
20,784 KB
testcase_49 AC 58 ms
22,628 KB
testcase_50 AC 58 ms
20,772 KB
testcase_51 AC 58 ms
20,840 KB
testcase_52 AC 57 ms
20,632 KB
testcase_53 AC 58 ms
20,768 KB
testcase_54 AC 58 ms
22,780 KB
testcase_55 AC 59 ms
20,592 KB
testcase_56 AC 58 ms
22,712 KB
testcase_57 AC 59 ms
20,636 KB
testcase_58 AC 58 ms
20,800 KB
testcase_59 AC 58 ms
20,804 KB
testcase_60 AC 59 ms
20,712 KB
testcase_61 AC 58 ms
20,572 KB
testcase_62 AC 58 ms
22,692 KB
testcase_63 AC 59 ms
20,596 KB
testcase_64 AC 58 ms
20,832 KB
testcase_65 AC 58 ms
20,748 KB
testcase_66 AC 86 ms
20,592 KB
testcase_67 AC 58 ms
20,636 KB
testcase_68 AC 58 ms
22,680 KB
testcase_69 AC 58 ms
22,764 KB
testcase_70 AC 58 ms
22,796 KB
testcase_71 AC 59 ms
24,924 KB
testcase_72 AC 59 ms
22,712 KB
testcase_73 AC 58 ms
22,712 KB
testcase_74 AC 58 ms
18,736 KB
testcase_75 AC 60 ms
22,776 KB
testcase_76 AC 59 ms
20,588 KB
testcase_77 AC 57 ms
20,728 KB
testcase_78 AC 60 ms
18,832 KB
testcase_79 AC 59 ms
20,628 KB
testcase_80 AC 58 ms
22,716 KB
testcase_81 AC 58 ms
20,852 KB
testcase_82 AC 58 ms
20,772 KB
testcase_83 AC 57 ms
20,668 KB
testcase_84 AC 58 ms
20,696 KB
testcase_85 AC 58 ms
20,748 KB
testcase_86 AC 58 ms
20,728 KB
testcase_87 AC 59 ms
20,752 KB
testcase_88 AC 58 ms
20,752 KB
testcase_89 AC 57 ms
20,640 KB
testcase_90 AC 58 ms
22,812 KB
testcase_91 AC 58 ms
18,724 KB
testcase_92 AC 58 ms
20,732 KB
testcase_93 AC 57 ms
20,728 KB
testcase_94 AC 58 ms
20,724 KB
testcase_95 AC 58 ms
22,796 KB
testcase_96 AC 57 ms
22,704 KB
testcase_97 AC 59 ms
20,856 KB
testcase_98 AC 58 ms
20,760 KB
testcase_99 AC 59 ms
22,692 KB
testcase_100 AC 58 ms
20,684 KB
testcase_101 AC 58 ms
20,656 KB
testcase_102 AC 59 ms
20,816 KB
testcase_103 AC 58 ms
20,760 KB
testcase_104 AC 58 ms
22,756 KB
testcase_105 AC 58 ms
20,676 KB
testcase_106 AC 58 ms
20,776 KB
testcase_107 AC 58 ms
20,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static int NN => int.Parse(ReadLine());
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var m = long.Parse(ReadLine());
        var dp = new long[15000];
        for (var i = 0L; i < dp.Length; ++i) dp[i] = (i + 1) * (i + 2) / 2;
        var count = new long[15000];
        var pos = 14999;
        var rest = m;
        while (rest > 0)
        {
            if (rest >= dp[pos])
            {
                ++count[pos];
                rest -= dp[pos];
            }
            else --pos;
        }
        var ans = new List<char>();
        for (var i = 0; i < count.Length; ++i)
        {
            ans.Add('c');
            ans.Add('o');
            for (var j = 0; j < count[i]; ++j) ans.Add('n');
        }
        WriteLine(string.Concat(ans));
    }
}
0