摘要: D - Yet Another Recursive Function 思路:直觉需要用到的数字大多数是重复的,所以记忆化了一下,测了一下 1e18 的数据,跑的飞快,直接交了,6ms。 #include <bits/stdc++.h> #define fi first #define se seco 阅读全文
posted @ 2022-10-31 16:47 Leonard7 阅读(44) 评论(0) 推荐(0)