用全排列函数next_permutation()解决 问题 摘要:解题思路:用三个for循环来找出三个不同的数的组合123 124 134 234在用next_permutation函数来输出注意事项:next_permutation不会输出原本的序列,所以用do-…… 题解列表 2022年07月19日 0 点赞 0 评论 355 浏览 评分:0.0
奇数个数简单利用字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100],i,count=0; gets(str); fo…… 题解列表 2022年07月19日 0 点赞 0 评论 376 浏览 评分:0.0
01背包算法求解 摘要:解题思路:注意事项:解疑!!!!参考代码:01背包算法的二维数组求解具体代码如下:#include <stdio.h>int Max(int a,int b){ if(a>b) r…… 题解列表 2022年07月19日 0 点赞 0 评论 405 浏览 评分:0.0
求输入数据绝对值,简单 摘要:解题思路:注意事项:1.整型用abs,浮点型用fabs.参考代码:#include<stdio.h>#include<math.h>int main(){ double a; while(scanf(…… 题解列表 2022年07月19日 0 点赞 0 评论 339 浏览 评分:0.0
简单便捷解决水仙花问题 摘要:解题思路此题要求水仙花数的总数,首先该用方法,即用循环的方法来便利各个数。之后确定范围。水仙花数是一个三位数,即它在100-999之间,因此,首先应确定范围。之后,了解各个位数的表达方式,用pytho…… 题解列表 2022年07月19日 0 点赞 0 评论 360 浏览 评分:6.0
蓝桥杯算法训练VIP-链表数据求和操作(记录在案) 摘要:#include <stdio.h> #include <malloc.h> typedef struct plural { int real; int imag; …… 题解列表 2022年07月19日 0 点赞 0 评论 246 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和(参考了上一题优质题解的代码改的,记录在案) 摘要:#include #include typedef struct plural { int real; int imag; struct plural *…… 题解列表 2022年07月19日 0 点赞 0 评论 315 浏览 评分:0.0
SInzoL--题解 1264: 防御导弹 摘要:####看到大多数的题解都是用数组记忆,再比较最大值来做的,我给大家提供一个不同的思路:dfs(超弱的) ###粘代码: ```cpp #include using namespace std…… 题解列表 2022年07月19日 0 点赞 0 评论 569 浏览 评分:9.9
[编程入门]选择排序 摘要:#include<stdio.h> int main() { int a[10],min,key,i,j; for(i=0;i<10;i++) { scanf("%d …… 题解列表 2022年07月19日 0 点赞 0 评论 226 浏览 评分:0.0
超好懂的字符串的连接 摘要:解题思路:就两个char 类型的函数呗,先输入,在写一个函数用另一个数组将它们存储,最后输出即可;注意事项:注意先后顺序即可;参考代码:#include<stdio.h>#include<string…… 题解列表 2022年07月19日 0 点赞 0 评论 606 浏览 评分:8.5