题解列表

筛选

1924: 01背包-C++

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int N;//物品个数 int C;//背包容量 int v[1000],w[1……

两个函数都用递归的操作

摘要:解题思路:注意事项:参考代码:#include<iomanip>using namespace std;double fact(double n){ if(n==1) return 1; return……

一般般的解法

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int m,t,findmin[10];……

c++分段函数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x; cin>>x; if(x<0){ pr……

[编程入门]链表合并

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; typedef struct node{     int num;     int……

二维数组的转置c++

摘要:解题思路:由于给出的是3*3的矩阵,所以输出是时直接将列变行行变列即可。注意事项:参考代码:#include<iostream>using namespace std;int main(){ int ……