首页 > LP钱不够
头像 AAARI
发表于 2022-10-16 15:37:55
#include<bits/stdc++.h> #define N 100 using namespace std; int a[N][N]; int dp[N][N]; int main(){ int t; scanf("%d",&t); while(t--){ i 展开全文
头像 你威哥
发表于 2022-05-17 16:20:27
思路: 00 01 02 03 04 10 11 12 13 14 20 21 22 23 24 30 31 32 33 34 40 41 42 43 44 基值:对于任意位置Aij(假如是11), 它的最小花费由Max{10, 01}决定。你想呀,吃货只能往下走, 或者往右走,按照逆向思维,你只 展开全文
头像 coder+9
发表于 2021-12-14 09:58:46
我以前在写啥呀 #include<iostream> #include<stack> #include<cstring> #include<cmath> using namespace std; typedef long long ll; int a[ 展开全文
头像 那万一赢了呢
发表于 2021-07-24 10:13:02
递归方法:void ff(int tot,int x,int y) 表示到(x,y)总共需要tot的钱 递归就是没有到终点继续执行此函数这个方法就是把所有路径走一遍所以比较慢。 #include <iostream> #include <cmath> using namesp 展开全文