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$ 升序排序,则能放的位置集合从前往后是包含 阅读全文
posted @ 2023-05-16 20:17 Cry_For_theMoon 阅读(138) 评论(1) 推荐(0) 编辑