結果
| 問題 | No.2198 Concon Substrings (COuNt-CONstruct Version) |
| コンテスト | |
| ユーザー |
strangerxxx
|
| 提出日時 | 2023-01-20 22:58:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 613 bytes |
| 記録 | |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 85,328 KB |
| 実行使用メモリ | 1,577,888 KB |
| 最終ジャッジ日時 | 2026-03-08 05:19:39 |
| 合計ジャッジ時間 | 729,568 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 MLE * 2 |
| other | AC * 14 WA * 6 MLE * 53 OLE * 31 |
ソースコード
def resolve():
import sys
input = sys.stdin.readline
MOD = 998244353
INF = float("inf")
m = int(input())
if m == 0:
print("a")
return
print("co", end="")
x = m
dp = [1, 1, 0]
y = 1
while x:
a = y
b = a >> 1
s = "c" * (b - dp[0])
if s:
print(s, end="")
dp[0] = b
while dp[1] < a:
print("o", end="")
dp[1] += dp[0]
if x & 1:
print("n", end="")
dp[2] += dp[1]
x >>= 1
y <<= 1
if __name__ == "__main__":
resolve()
strangerxxx