输出全排列(C++超详细版本,可当dfs模板!!) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a[11],visit[11];//a[i]为存放结果的数组,最后输出的答…… 题解列表 2023年02月03日 0 点赞 0 评论 325 浏览 评分:9.9
1264: 防御导弹 摘要:```cpp #include using namespace std; int main() { int a,num[20],cnt=0,dp[20],ans=-1; w…… 题解列表 2023年02月03日 0 点赞 0 评论 362 浏览 评分:9.9
1263: 金明的预算方案 摘要:```cpp #include #include #define pb push_back using namespace std; int feesum,n,ans,f[32000],cn…… 题解列表 2023年02月03日 0 点赞 0 评论 274 浏览 评分:9.9
1262: 邮局选址问题 摘要:```cpp #include #include using namespace std; int main() { int a[10000],b[10000],n; c…… 题解列表 2023年02月03日 0 点赞 0 评论 299 浏览 评分:9.9
1261: 速算24点 摘要:```cpp #include #include using namespace std; int sign(int a,int b,int i) { switch(i) …… 题解列表 2023年02月03日 0 点赞 0 评论 426 浏览 评分:9.9
1260: 逆反的01串 摘要:```cpp #include #include using namespace std; int main() { char n[200]; while(cin>>n)…… 题解列表 2023年02月03日 0 点赞 0 评论 270 浏览 评分:9.9
新手解题:1087丨使用do while循环 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a, b; cin >> a >> b; do{ …… 题解列表 2023年02月03日 0 点赞 0 评论 385 浏览 评分:9.9
1258: 连续自然数和 摘要:```cpp #include using namespace std; int main() { long long n,i,j; while(cin>>n) …… 题解列表 2023年02月03日 0 点赞 0 评论 296 浏览 评分:9.9
2812: 球弹跳高度的计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main (){ double h,sum; cin>>h; //输入初始高…… 题解列表 2023年02月03日 0 点赞 0 评论 655 浏览 评分:9.9
1257: 超级楼梯 摘要:```cpp #include using namespace std; int total; int sum(int step,int m) { if(step>m) …… 题解列表 2023年02月03日 0 点赞 0 评论 381 浏览 评分:9.9