Stay Hungry,Stay Foolish!

摘要: D - Yet Another Recursive Function https://atcoder.jp/contests/abc275/tasks/abc275_d 思路 动态规划问题。 第一印象使用函数递归调用实现, 但刚开始担心会爆栈,因为n很大会产生很多次递归调用层数, 所以,最开始考虑使 阅读全文
posted @ 2022-10-31 22:46 lightsong 阅读(40) 评论(0) 推荐(0) 编辑
摘要: C - Counting Squares https://atcoder.jp/contests/abc275/tasks/abc275_c 参考: https://atcoder.jp/contests/abc275/submissions/36103954 思路 首先不能使用暴力穷举法,任意四个 阅读全文
posted @ 2022-10-31 12:20 lightsong 阅读(108) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel