Loading [MathJax]/jax/output/HTML-CSS/jax.js
OTTFF's Blog
Home
Templates
Contests
Solutions
Notes
栈
C. Minimal string - Educational Codeforces Round 19
Solutions
Codeforces
贪心
栈
1700
Med-
2025-01-06
https://codeforces.com/contest/797/problem/C 题目大意 给出小写字母构成的字符串
A
(
|
A
|
≤
10
5
)
,和空串
B
,
C
。每次操作可以做以下操作之一: 将
A
开头的字符移动到
B
结尾。 将
B
结尾的字符移动到
C
结尾 重复操作直到
A
,
B
为空。问能得到字典序最小的
C
是什
…