Stay Hungry,Stay Foolish!

摘要: C - Ameba https://atcoder.jp/contests/abc274/tasks/abc274_c 题目分析 Code https://atcoder.jp/contests/abc274/submissions/35890782 int n; int a; map<int, i 阅读全文
posted @ 2022-10-24 09:56 lightsong 阅读(35) 评论(0) 推荐(0) 编辑
摘要: D - Robot Arms 2 题目 : https://atcoder.jp/contests/abc274/tasks/abc274_d 参考: https://zhuanlan.zhihu.com/p/576281206 分析 dfs或者bfs最大复杂度 2^1000, 超时必然的。 采用内 阅读全文
posted @ 2022-10-24 09:48 lightsong 阅读(44) 评论(0) 推荐(0) 编辑
摘要: lower_bound https://www.geeksforgeeks.org/lower_bound-in-cpp/ 在有序数组中,找到大于或等于目标值的数据集合中值最小的位置。 The lower_bound() method in C++ is used to return an iter 阅读全文
posted @ 2022-10-24 09:36 lightsong 阅读(44) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel