結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー rlangevinrlangevin
提出日時 2023-01-20 22:51:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 77,640 KB
最終ジャッジ日時 2023-09-05 15:17:15
合計ジャッジ時間 20,381 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
77,468 KB
testcase_01 AC 88 ms
77,204 KB
testcase_02 AC 91 ms
77,432 KB
testcase_03 AC 91 ms
77,392 KB
testcase_04 AC 86 ms
77,308 KB
testcase_05 AC 86 ms
77,312 KB
testcase_06 AC 86 ms
77,204 KB
testcase_07 AC 88 ms
77,412 KB
testcase_08 AC 86 ms
77,472 KB
testcase_09 AC 89 ms
77,548 KB
testcase_10 AC 89 ms
77,444 KB
testcase_11 AC 90 ms
77,612 KB
testcase_12 AC 88 ms
77,096 KB
testcase_13 AC 87 ms
77,336 KB
testcase_14 AC 89 ms
77,608 KB
testcase_15 AC 95 ms
77,528 KB
testcase_16 AC 87 ms
77,516 KB
testcase_17 WA -
testcase_18 AC 88 ms
77,336 KB
testcase_19 AC 88 ms
77,088 KB
testcase_20 AC 89 ms
77,544 KB
testcase_21 AC 88 ms
77,544 KB
testcase_22 WA -
testcase_23 AC 89 ms
77,332 KB
testcase_24 AC 91 ms
77,088 KB
testcase_25 AC 88 ms
77,388 KB
testcase_26 AC 89 ms
77,432 KB
testcase_27 AC 94 ms
77,336 KB
testcase_28 AC 90 ms
77,576 KB
testcase_29 AC 88 ms
77,344 KB
testcase_30 AC 86 ms
77,196 KB
testcase_31 AC 88 ms
77,428 KB
testcase_32 WA -
testcase_33 AC 88 ms
77,468 KB
testcase_34 WA -
testcase_35 AC 89 ms
77,356 KB
testcase_36 WA -
testcase_37 AC 87 ms
77,448 KB
testcase_38 AC 92 ms
77,412 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 86 ms
77,276 KB
testcase_42 AC 92 ms
77,480 KB
testcase_43 WA -
testcase_44 AC 90 ms
77,224 KB
testcase_45 AC 93 ms
77,224 KB
testcase_46 AC 91 ms
77,364 KB
testcase_47 WA -
testcase_48 AC 93 ms
77,332 KB
testcase_49 AC 98 ms
77,116 KB
testcase_50 AC 92 ms
77,364 KB
testcase_51 AC 93 ms
77,248 KB
testcase_52 AC 89 ms
77,336 KB
testcase_53 WA -
testcase_54 AC 89 ms
77,200 KB
testcase_55 WA -
testcase_56 AC 87 ms
77,348 KB
testcase_57 WA -
testcase_58 WA -
testcase_59 AC 88 ms
77,340 KB
testcase_60 AC 89 ms
77,340 KB
testcase_61 AC 88 ms
77,092 KB
testcase_62 AC 88 ms
77,104 KB
testcase_63 WA -
testcase_64 WA -
testcase_65 AC 94 ms
77,532 KB
testcase_66 AC 95 ms
77,428 KB
testcase_67 WA -
testcase_68 AC 91 ms
77,328 KB
testcase_69 AC 95 ms
77,304 KB
testcase_70 AC 92 ms
77,372 KB
testcase_71 AC 94 ms
77,608 KB
testcase_72 AC 90 ms
77,240 KB
testcase_73 WA -
testcase_74 AC 97 ms
77,264 KB
testcase_75 AC 94 ms
77,560 KB
testcase_76 AC 94 ms
77,300 KB
testcase_77 WA -
testcase_78 AC 95 ms
77,344 KB
testcase_79 WA -
testcase_80 AC 94 ms
77,580 KB
testcase_81 AC 97 ms
77,484 KB
testcase_82 WA -
testcase_83 WA -
testcase_84 AC 90 ms
77,640 KB
testcase_85 WA -
testcase_86 AC 96 ms
77,556 KB
testcase_87 WA -
testcase_88 AC 91 ms
77,464 KB
testcase_89 AC 97 ms
77,308 KB
testcase_90 AC 98 ms
77,232 KB
testcase_91 AC 95 ms
77,480 KB
testcase_92 AC 95 ms
77,448 KB
testcase_93 AC 90 ms
77,328 KB
testcase_94 WA -
testcase_95 AC 97 ms
77,452 KB
testcase_96 AC 93 ms
77,488 KB
testcase_97 AC 93 ms
77,484 KB
testcase_98 WA -
testcase_99 WA -
testcase_100 WA -
testcase_101 AC 93 ms
77,300 KB
testcase_102 AC 98 ms
77,504 KB
testcase_103 AC 92 ms
77,388 KB
testcase_104 WA -
testcase_105 WA -
testcase_106 AC 97 ms
77,316 KB
testcase_107 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def Gauss(n):
    return (n + 1) * (n + 2)//2

M = int(input())
S = set()
for i in range(19999, -1, -1):
    if M >= Gauss(i):
        S.add(i)
        M -= Gauss(i)
ans = []
for i in range(20000):
    if i in S:
        ans.append("con")
    else:
        ans.append("co")
print(*ans, sep="")
0