摘要: 1、2、5 三种硬币,使用 k 个,要凑成 target 共有几种方式? #include<bits/stdc++.h> using namespace std; typedef long long ll; // 1、2、5 三种硬币,只使用 k 个凑成 target 共有几种方式? // f[i] 阅读全文
posted @ 2021-06-13 20:19 童年の波鞋 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 给你一个二维整数数组 triplets ,其中 triplets[i] = [ai, bi, ci] 表示第 i 个 三元组 。 同时,给你一个整数数组 target = [x, y, z] ,表示你想要得到的 三元组 。 为了得到 target ,你需要对 triplets 执行下面的操作 任意次 阅读全文
posted @ 2021-06-13 15:10 童年の波鞋 阅读(47) 评论(0) 推荐(0) 编辑