Cry_For_theMoon |
|
||
2023年5月16日
摘要:
Codeforces Round 873 (Div.1) A. Counting Orders 对于每个 $a_i$,可以计算出 $c_i$ 表示有多少个 $b_j\lt a_i$。 那么第 $i$ 个人就有 $c_i$ 种可能的位置。 注意到如果将 $a$ 升序排序,则能放的位置集合从前往后是包含 阅读全文
|
Copyright © 2024 Cry_For_theMoon
Powered by .NET 8.0 on Kubernetes |