結果
| 問題 | No.2198 Concon Substrings (COuNt-CONstruct Version) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-20 22:31:32 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 917 ms |
| コンパイル使用メモリ | 85,520 KB |
| 実行使用メモリ | 1,491,928 KB |
| 最終ジャッジ日時 | 2026-03-08 04:06:28 |
| 合計ジャッジ時間 | 10,228 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 2 MLE * 1 OLE * 2 -- * 95 |
ソースコード
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])