摘要: [传送门](https://www.lanqiao.cn/problems/185/learning/?page=1&first_category_id=1&sort=students_count&category_id=3&name=修改数组) ## 思路 首先想到的是用一个集合来记录出现过的数字 阅读全文
posted @ 2023-08-02 18:56 完美二叉树 阅读(26) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P8603 构造树的过程不难,比较烦人的是如何把这棵树横着打印出来 ![](https://cdn.luogu.com.cn/upload/image_hosting/4z42ybq4.png) ``` ...|-12 10-| .. 阅读全文
posted @ 2023-08-02 18:54 完美二叉树 阅读(143) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P8606 ## 思路 这个游戏和Nim博弈类似,但又不完全是。如果我们把小和尚之间的台阶看作石堆的话,那石堆中的石子不仅会变少,也会变多。 比如说,某个小和尚向上了移动了一个台阶,那么他前面的空间会变少,而后面的空间会变大,**相当 阅读全文
posted @ 2023-08-02 18:54 完美二叉树 阅读(37) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/99/learning/?page=3&first_category_id=1&sort=students_count&second_category_id=3 暴力方法 ```python N, K = map(int, input( 阅读全文
posted @ 2023-08-02 18:51 完美二叉树 阅读(33) 评论(0) 推荐(0)