• 2024-12-08(每日一题)杨辉三⻆——<动态规划>
    1.题⽬链接:BC140杨辉三⻆2.题⽬描述:3.解法:算法思路:最基础的dp模型,按照规律模拟出来杨辉三⻆即可。 C++算法代码: #include<iostream>#include<vector>usingnamespacestd;intmain(){intn;cin>>n;//建表vector<vector<int>>dp(n+1,v