結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー chineristACchineristAC
提出日時 2022-12-30 00:15:23
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 729 bytes
コンパイル時間 1,515 ms
コンパイル使用メモリ 86,788 KB
実行使用メモリ 74,944 KB
最終ジャッジ日時 2023-09-05 13:06:52
合計ジャッジ時間 19,145 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
74,620 KB
testcase_01 AC 119 ms
74,720 KB
testcase_02 AC 117 ms
74,596 KB
testcase_03 AC 118 ms
74,532 KB
testcase_04 AC 117 ms
74,436 KB
testcase_05 AC 116 ms
74,852 KB
testcase_06 AC 118 ms
74,708 KB
testcase_07 AC 116 ms
74,688 KB
testcase_08 AC 116 ms
74,844 KB
testcase_09 AC 116 ms
74,620 KB
testcase_10 AC 118 ms
74,484 KB
testcase_11 AC 116 ms
74,528 KB
testcase_12 AC 118 ms
74,260 KB
testcase_13 AC 118 ms
74,568 KB
testcase_14 AC 115 ms
74,436 KB
testcase_15 AC 117 ms
74,432 KB
testcase_16 AC 116 ms
74,940 KB
testcase_17 AC 118 ms
74,568 KB
testcase_18 AC 112 ms
74,668 KB
testcase_19 AC 114 ms
74,704 KB
testcase_20 AC 113 ms
74,928 KB
testcase_21 AC 114 ms
74,440 KB
testcase_22 AC 117 ms
74,852 KB
testcase_23 AC 116 ms
74,940 KB
testcase_24 AC 117 ms
74,484 KB
testcase_25 AC 114 ms
74,268 KB
testcase_26 AC 114 ms
74,564 KB
testcase_27 AC 116 ms
74,908 KB
testcase_28 AC 115 ms
74,932 KB
testcase_29 AC 117 ms
74,532 KB
testcase_30 AC 114 ms
74,432 KB
testcase_31 AC 115 ms
74,564 KB
testcase_32 AC 119 ms
74,724 KB
testcase_33 AC 115 ms
74,528 KB
testcase_34 AC 115 ms
74,532 KB
testcase_35 AC 114 ms
74,916 KB
testcase_36 AC 115 ms
74,532 KB
testcase_37 AC 117 ms
74,348 KB
testcase_38 AC 116 ms
74,668 KB
testcase_39 AC 120 ms
74,616 KB
testcase_40 AC 119 ms
74,796 KB
testcase_41 AC 118 ms
74,464 KB
testcase_42 AC 117 ms
74,624 KB
testcase_43 AC 118 ms
74,528 KB
testcase_44 AC 118 ms
74,852 KB
testcase_45 AC 117 ms
74,760 KB
testcase_46 AC 117 ms
74,708 KB
testcase_47 AC 117 ms
74,768 KB
testcase_48 AC 119 ms
74,604 KB
testcase_49 AC 117 ms
74,704 KB
testcase_50 AC 116 ms
74,432 KB
testcase_51 AC 115 ms
74,744 KB
testcase_52 AC 116 ms
74,516 KB
testcase_53 AC 119 ms
74,712 KB
testcase_54 AC 114 ms
74,704 KB
testcase_55 AC 115 ms
74,340 KB
testcase_56 AC 116 ms
74,676 KB
testcase_57 AC 115 ms
74,480 KB
testcase_58 AC 116 ms
74,520 KB
testcase_59 AC 115 ms
74,852 KB
testcase_60 AC 115 ms
74,440 KB
testcase_61 AC 113 ms
74,312 KB
testcase_62 AC 115 ms
74,708 KB
testcase_63 AC 114 ms
74,620 KB
testcase_64 AC 116 ms
74,456 KB
testcase_65 AC 118 ms
74,600 KB
testcase_66 AC 117 ms
74,556 KB
testcase_67 AC 117 ms
74,600 KB
testcase_68 AC 116 ms
74,936 KB
testcase_69 AC 117 ms
74,436 KB
testcase_70 AC 116 ms
74,728 KB
testcase_71 AC 117 ms
74,344 KB
testcase_72 AC 119 ms
74,852 KB
testcase_73 AC 117 ms
74,564 KB
testcase_74 AC 118 ms
74,816 KB
testcase_75 AC 118 ms
74,536 KB
testcase_76 AC 118 ms
74,232 KB
testcase_77 AC 116 ms
74,892 KB
testcase_78 AC 117 ms
74,728 KB
testcase_79 AC 119 ms
74,932 KB
testcase_80 AC 116 ms
74,804 KB
testcase_81 AC 119 ms
74,700 KB
testcase_82 AC 118 ms
74,452 KB
testcase_83 AC 118 ms
74,656 KB
testcase_84 AC 119 ms
74,344 KB
testcase_85 AC 115 ms
74,808 KB
testcase_86 AC 114 ms
74,712 KB
testcase_87 AC 114 ms
74,700 KB
testcase_88 AC 114 ms
74,620 KB
testcase_89 AC 117 ms
74,708 KB
testcase_90 AC 116 ms
74,444 KB
testcase_91 AC 117 ms
74,276 KB
testcase_92 AC 117 ms
74,712 KB
testcase_93 AC 117 ms
74,620 KB
testcase_94 AC 117 ms
74,672 KB
testcase_95 AC 117 ms
74,716 KB
testcase_96 AC 118 ms
74,832 KB
testcase_97 AC 115 ms
74,652 KB
testcase_98 AC 116 ms
74,472 KB
testcase_99 AC 116 ms
74,676 KB
testcase_100 AC 118 ms
74,704 KB
testcase_101 AC 118 ms
74,264 KB
testcase_102 AC 115 ms
74,604 KB
testcase_103 AC 117 ms
74,264 KB
testcase_104 AC 116 ms
74,852 KB
testcase_105 AC 115 ms
74,780 KB
testcase_106 AC 117 ms
74,944 KB
testcase_107 AC 117 ms
74,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd


input = lambda :sys.stdin.readline()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

M = int(input())
N = [0,0,0]
for i in range(3)[::-1]:
    t = 10**(4*i)
    N[i] = M // t
    M -= N[i] * t

res = []
C = [1,100,9999]
O = [1,99,9900]
for i in range(3):
    res.append("c"*C[i])
    res.append("o"*O[i])
    res.append("n"*N[i])


S = "".join(res)
print(S)

"""
T = "con"

dp = [0,0,0,0]
dp[0] = 1
for s in S:
    ndp = dp.copy()
    for i in range(3):
        if s == T[i]:
            ndp[i+1] += dp[i]
    dp = ndp

assert dp[3] == M
"""
0