摘要: 广州大学第十八届ACM大学生程序设计竞赛(同步赛) https://ac.nowcoder.com/acm/contest/77448 一. 能赢吗?会赢的! 取整函数:https://blog.csdn.net/aouixh/article/details/53483556 ceil(): dou 阅读全文
posted @ 2024-03-24 18:19 miao-jc 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 走楼梯(记忆化搜索版) //暴力dfs+记录答案 #include<bits/stdc++.h> using namespace std; #define int long long const int N=1e5+10; int memo[N]; int dfs(int n) { if(memo[ 阅读全文
posted @ 2024-03-24 16:55 miao-jc 阅读(5) 评论(0) 推荐(0) 编辑