随笔分类 -  ACM - 动态规划 - 背包dp

摘要:AtCoder Beginner Contest 159 https://atcoder.jp/contests/abc159 EF 是打基础的好题 D - Banned K #include <bits/stdc++.h> #define ll long long using namespace 阅读全文
posted @ 2023-04-25 20:44 Sakana~ 阅读(13) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 153 https://atcoder.jp/contests/abc153 这套比较简单。 E - Crested Ibis vs Monster 完全背包 #include <bits/stdc++.h> #define ll long long 阅读全文
posted @ 2023-04-02 10:59 Sakana~ 阅读(17) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 145 https://atcoder.jp/contests/abc145 D - Knight 乍一看以为是dp,但是数据范围不允许。 仔细一看发现,两种操作的次数是固定的,可以枚举出来每种操作分别进行了多少次,如 (1,2) 走了 a 阅读全文
posted @ 2023-03-28 12:59 Sakana~ 阅读(37) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示