結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー ShirotsumeShirotsume
提出日時 2023-01-20 23:53:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 591 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 86,592 KB
実行使用メモリ 81,052 KB
最終ジャッジ日時 2023-09-05 16:21:11
合計ジャッジ時間 26,753 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
80,008 KB
testcase_01 AC 127 ms
80,332 KB
testcase_02 AC 120 ms
73,316 KB
testcase_03 AC 128 ms
80,228 KB
testcase_04 AC 127 ms
80,272 KB
testcase_05 AC 130 ms
80,312 KB
testcase_06 AC 130 ms
79,784 KB
testcase_07 AC 131 ms
79,816 KB
testcase_08 AC 130 ms
80,096 KB
testcase_09 AC 130 ms
79,852 KB
testcase_10 AC 133 ms
80,040 KB
testcase_11 AC 132 ms
80,176 KB
testcase_12 AC 129 ms
80,232 KB
testcase_13 WA -
testcase_14 AC 148 ms
80,352 KB
testcase_15 AC 291 ms
81,044 KB
testcase_16 AC 130 ms
79,872 KB
testcase_17 WA -
testcase_18 AC 134 ms
80,124 KB
testcase_19 AC 132 ms
79,816 KB
testcase_20 AC 131 ms
79,876 KB
testcase_21 AC 130 ms
80,268 KB
testcase_22 WA -
testcase_23 AC 136 ms
80,108 KB
testcase_24 WA -
testcase_25 AC 129 ms
79,980 KB
testcase_26 AC 146 ms
80,560 KB
testcase_27 AC 289 ms
81,048 KB
testcase_28 AC 128 ms
79,832 KB
testcase_29 AC 128 ms
80,276 KB
testcase_30 AC 127 ms
79,876 KB
testcase_31 AC 129 ms
79,980 KB
testcase_32 WA -
testcase_33 AC 133 ms
80,232 KB
testcase_34 WA -
testcase_35 AC 129 ms
80,012 KB
testcase_36 WA -
testcase_37 AC 129 ms
80,200 KB
testcase_38 AC 132 ms
80,032 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 133 ms
80,024 KB
testcase_42 AC 133 ms
80,032 KB
testcase_43 WA -
testcase_44 AC 132 ms
80,264 KB
testcase_45 AC 131 ms
79,872 KB
testcase_46 AC 131 ms
80,028 KB
testcase_47 WA -
testcase_48 AC 131 ms
80,112 KB
testcase_49 AC 130 ms
80,032 KB
testcase_50 AC 130 ms
80,056 KB
testcase_51 AC 135 ms
80,112 KB
testcase_52 AC 131 ms
80,100 KB
testcase_53 WA -
testcase_54 AC 131 ms
80,032 KB
testcase_55 AC 132 ms
80,232 KB
testcase_56 AC 130 ms
80,132 KB
testcase_57 WA -
testcase_58 AC 130 ms
80,024 KB
testcase_59 AC 133 ms
80,232 KB
testcase_60 AC 130 ms
80,032 KB
testcase_61 WA -
testcase_62 AC 142 ms
80,552 KB
testcase_63 AC 152 ms
80,452 KB
testcase_64 AC 169 ms
80,256 KB
testcase_65 AC 209 ms
80,168 KB
testcase_66 AC 168 ms
80,788 KB
testcase_67 AC 168 ms
80,596 KB
testcase_68 AC 148 ms
80,648 KB
testcase_69 AC 205 ms
80,520 KB
testcase_70 AC 276 ms
80,940 KB
testcase_71 WA -
testcase_72 AC 137 ms
80,120 KB
testcase_73 WA -
testcase_74 AC 192 ms
80,784 KB
testcase_75 AC 232 ms
80,408 KB
testcase_76 WA -
testcase_77 AC 141 ms
80,452 KB
testcase_78 AC 253 ms
80,972 KB
testcase_79 WA -
testcase_80 AC 154 ms
80,740 KB
testcase_81 AC 200 ms
80,396 KB
testcase_82 WA -
testcase_83 AC 165 ms
80,756 KB
testcase_84 AC 151 ms
80,520 KB
testcase_85 WA -
testcase_86 AC 172 ms
80,588 KB
testcase_87 AC 237 ms
80,584 KB
testcase_88 AC 130 ms
79,880 KB
testcase_89 AC 179 ms
80,540 KB
testcase_90 AC 208 ms
80,512 KB
testcase_91 WA -
testcase_92 AC 169 ms
80,268 KB
testcase_93 WA -
testcase_94 AC 163 ms
80,600 KB
testcase_95 AC 224 ms
80,480 KB
testcase_96 AC 170 ms
80,404 KB
testcase_97 AC 233 ms
80,260 KB
testcase_98 AC 228 ms
80,656 KB
testcase_99 AC 163 ms
80,260 KB
testcase_100 WA -
testcase_101 AC 152 ms
80,640 KB
testcase_102 AC 260 ms
80,804 KB
testcase_103 AC 160 ms
80,416 KB
testcase_104 AC 145 ms
80,560 KB
testcase_105 AC 201 ms
80,480 KB
testcase_106 AC 255 ms
81,000 KB
testcase_107 AC 204 ms
80,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import deque, Counter
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353
import random

m = ii()
if m == 0:
    print('iamtourist')
    exit()
a = []

cnt = 0

for i in range(20000):
    cnt += i
    a.append(cnt)

x = []
for i in range(19999, 0, -1):
    if m - a[i] >= 0:
        x.append(i)
        m -= a[i]
ans = []
for i in range(1, 20001):
    ans.append('c')
    ans.append('o')
    if i in x:
        ans.append('n')
print(''.join(ans))
0