結果
問題 | No.2198 Concon Substrings (COuNt-CONstruct Version) |
ユーザー |
![]() |
提出日時 | 2023-01-20 22:26:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 95 ms / 2,000 ms |
コード長 | 205 bytes |
コンパイル時間 | 476 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 76,560 KB |
最終ジャッジ日時 | 2024-06-23 10:23:47 |
合計ジャッジ時間 | 13,372 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 104 |
ソースコード
M=int(input())d=[0]*20001for i in range(20000):t=20000-iif M>=t*(1+t)//2:d[t]=M//(t*(1+t)//2)M-=d[t]*(t*(1+t)//2)d[0]=Mans='n'*Mfor i in range(20000):ans+='co'+'n'*d[i+1]print(ans)