题解列表

筛选

2805: 乘方计算

摘要:``` #include using namespace std; int main(){ int a,n,sum; cin>>a>>n; sum=1; for(int i=0;……

计算邮资 简洁写法

摘要:``` #include using namespace std; int main() { int n; char c; cin >> n >> c; int ans = 8;……

C++_dfs容易理解

摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar……

非递归方法解决最长公共子序列

摘要:解题思路:使用二维数组来记录相等的情况,根据左边和上方的数字以及相等的情况来为二维数组赋值注意事项:起始项为【1,1】,所以要i-1,j-1;参考代码:#include <iostream>#incl……