結果
問題 |
No.2198 Concon Substrings (COuNt-CONstruct Version)
|
ユーザー |
![]() |
提出日時 | 2023-01-20 22:45:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 172 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 50,944 KB |
最終ジャッジ日時 | 2024-06-23 10:45:09 |
合計ジャッジ時間 | 31,650 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 44 WA * 60 |
ソースコード
m = int(input()) x = [i*(i+1)//2 for i in range(1,int(m**0.5)+2)] ans = [] while x: ans.append("c"*(m//x[-1])) ans.append("on") m %= x.pop() print("".join(ans))