結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-01-27 23:17:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 871 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 81,824 KB
最終ジャッジ日時 2023-09-10 17:04:05
合計ジャッジ時間 25,831 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
77,764 KB
testcase_01 AC 107 ms
77,456 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 106 ms
73,268 KB
testcase_07 AC 105 ms
73,252 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 131 ms
78,076 KB
testcase_13 AC 122 ms
81,624 KB
testcase_14 AC 122 ms
79,512 KB
testcase_15 AC 114 ms
78,556 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 104 ms
73,456 KB
testcase_19 AC 107 ms
73,356 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 118 ms
78,000 KB
testcase_25 AC 121 ms
81,528 KB
testcase_26 AC 118 ms
79,528 KB
testcase_27 AC 127 ms
80,428 KB
testcase_28 AC 108 ms
78,032 KB
testcase_29 AC 108 ms
77,916 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 106 ms
73,160 KB
testcase_37 AC 106 ms
73,388 KB
testcase_38 AC 105 ms
73,380 KB
testcase_39 AC 106 ms
73,456 KB
testcase_40 AC 105 ms
73,196 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 AC 122 ms
80,396 KB
testcase_54 AC 138 ms
78,596 KB
testcase_55 AC 129 ms
81,336 KB
testcase_56 AC 123 ms
78,320 KB
testcase_57 AC 124 ms
78,280 KB
testcase_58 AC 127 ms
79,940 KB
testcase_59 AC 119 ms
78,004 KB
testcase_60 AC 120 ms
78,860 KB
testcase_61 AC 120 ms
80,008 KB
testcase_62 AC 115 ms
78,376 KB
testcase_63 AC 119 ms
81,056 KB
testcase_64 AC 123 ms
81,372 KB
testcase_65 AC 124 ms
80,652 KB
testcase_66 AC 123 ms
80,840 KB
testcase_67 AC 126 ms
81,456 KB
testcase_68 AC 121 ms
80,800 KB
testcase_69 AC 123 ms
79,540 KB
testcase_70 AC 153 ms
80,248 KB
testcase_71 WA -
testcase_72 AC 123 ms
79,244 KB
testcase_73 AC 118 ms
79,696 KB
testcase_74 AC 123 ms
80,928 KB
testcase_75 AC 155 ms
80,908 KB
testcase_76 AC 123 ms
80,220 KB
testcase_77 AC 121 ms
81,076 KB
testcase_78 AC 182 ms
80,212 KB
testcase_79 AC 124 ms
78,760 KB
testcase_80 AC 122 ms
81,824 KB
testcase_81 AC 153 ms
78,908 KB
testcase_82 AC 115 ms
80,252 KB
testcase_83 AC 125 ms
80,696 KB
testcase_84 AC 120 ms
79,784 KB
testcase_85 AC 122 ms
81,088 KB
testcase_86 AC 120 ms
80,096 KB
testcase_87 AC 190 ms
81,380 KB
testcase_88 AC 119 ms
80,268 KB
testcase_89 AC 122 ms
78,608 KB
testcase_90 AC 157 ms
81,008 KB
testcase_91 WA -
testcase_92 AC 164 ms
78,800 KB
testcase_93 AC 114 ms
79,608 KB
testcase_94 AC 152 ms
80,816 KB
testcase_95 AC 150 ms
79,224 KB
testcase_96 AC 163 ms
80,532 KB
testcase_97 WA -
testcase_98 WA -
testcase_99 AC 122 ms
78,768 KB
testcase_100 AC 193 ms
80,164 KB
testcase_101 AC 154 ms
80,224 KB
testcase_102 AC 123 ms
79,884 KB
testcase_103 AC 123 ms
79,428 KB
testcase_104 AC 197 ms
81,348 KB
testcase_105 AC 160 ms
80,868 KB
testcase_106 WA -
testcase_107 AC 124 ms
79,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

M = int(input())

def fcr(n):
    
    ng = math.ceil(n**(1/3)) + 100
    
    ok = math.ceil(n**(1/3)) - 100
    while ng-ok>1:
        mid = (ng+ok)//2
        
        if mid**3<=n:
            ok = mid
        else:
            ng = mid
    return ok
    
    
N = fcr(M)
for k in range(-1,2):
    W = N + k
    flg = False
    for i in range(-1000,1000):
        Z = N+i
        for j in range(-1000,1000):
            Y = N+j
            if (1< M - W*((Y+1)*Z+1) + W + Y + Z<=59998)&(M >= W*((Y+1)*Z+1)):
                flg = True
                break
        if flg:
            break
    if flg:
        break

    
    
    
X = M - W*(Z*(Y+1)+1)
ans = ['c','o'] + ['n']*X + ['c']*Y + ['o']*Z + ['n']*W
print(''.join(ans))
0