- 博客(10)
- 收藏
- 关注
原创 Codeforces Round 708 (Div. 2)C2. k-LCM (hard version)
3⩽k⩽n给定一个整数n,请找到k个和为n的正整数a1a2ak,使得lcma1a2ak⩽2n。t组数据,1⩽t⩽1043⩽n⩽1093⩽k⩽n。保证所有t组数据中∑k⩽105。
2023-03-08 23:40:48 135 1
原创 Educational Codeforces Round 85 (Rated for Div. 2)C. Circle of Monsters
【代码】Educational Codeforces Round 85 (Rated for Div. 2)C. Circle of Monsters。
2023-03-05 23:28:29 87
原创 Educational Codeforces Round 144 (Rated for Div. 2) (C-D)题解
Educational Codeforces Round 144 (Rated for Div. 2) (C-D)题解 C. Maximum Set
2023-03-01 18:58:58 332
原创 Codeforces Round #642 (Div. 3)D. Constructing the Array[优先队列]
采用优先队列,存储 (node){l,r} 元素,每次操作最长区间即可,具体思路见代码。
2023-02-28 22:31:42 88
原创 Codeforces Round #645 (Div. 2)C. Celex Update(规律)
Codeforces Round #645 (Div. 2)C. Celex Update(规律)题目大意:### 给你一个图,要求从$(x_1,y_1)$ 走到 $(x_2,y_2)$,只能向左或下,然后得到所走路径上的数之和,问一共有多少种和。
2023-02-26 19:54:55 78
原创 Codeforces Round #723 (Div. 2)C2. Potions (Hard Version)[贪心+优先队列]
【题解】Codeforces Round #723 (Div. 2)C2. Potions (Hard Version)[贪心+优先队列]一共有 n (n
2023-02-23 23:58:49 107
原创 Educational Codeforces Round 93 (Rated for Div. 2)C. Good Subarrays[前缀和]
【题解】Educational Codeforces Round 93 (Rated for Div. 2)C. Good Subarrays[前缀和]给你一个只包含 0-9 的长度为 n $(n
2023-02-22 19:45:38 191
原创 Codeforces Round #635 (Div. 1)A. Linova and Kingdom
【题解】Codeforces Round #635 (Div. 1)A. Linova and Kingdom。给你一个含有 n 个节点的树,1号节点为根节点,要求选定 k 个节点作为黑点,目标为 所有黑点到根节点的最短路径上经过的白点数之和。
2023-02-22 12:46:08 93
原创 Codeforces Round #218 (Div. 2) 371C - Hamburgers (二分)
【题解】Codeforces Round #218 (Div. 2) 371C - Hamburgers (二分)
2023-02-20 23:52:52 126 1
原创 Codeforces Round #222 (Div. 1) 377A - Maze (连通块)
【题解】Codeforces Round #222 (Div. 1) 377A - Maze (连通块)
2023-02-20 23:51:58 77
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人