結果

問題 No.2198 Concon Substrings (COuNt-CONstruct Version)
ユーザー Hydru
提出日時 2023-01-20 22:31:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 82,124 KB
実行使用メモリ 622,608 KB
最終ジャッジ日時 2024-06-23 10:28:05
合計ジャッジ時間 6,516 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 4 WA * 2 MLE * 1 OLE * 1 -- * 96
権限があれば一括ダウンロードができます

ソースコード

diff #

m=int(input())

if m<=60000-2:
    S="c"*m+"on"
    print(S)
    exit()

ans="no"
cnt=0
while(m>0):
    x=2**cnt
    ind=m%4
    ans+="c"*ind
    m//=2
    if m==0:
        break
    ans+="o"*x
    ans+="n"*x
    ans+="o"*x
    cnt+=1

print(ans[::-1])

0