#C++1870——统计字符 摘要:#include <iostream> #include <cstring> #include <algorithm> using namespace std; int a[26],b[26]…… 题解列表 2022年07月18日 0 点赞 0 评论 557 浏览 评分:0.0
编写题解 1954: 话费计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define p 50#define a 0.4int main(){ int n; float m; scanf("%d",&n);…… 题解列表 2022年07月18日 0 点赞 0 评论 436 浏览 评分:0.0
字符串编码(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ string str; cin >> str; int …… 题解列表 2022年07月18日 0 点赞 0 评论 543 浏览 评分:0.0
[编程入门]选择排序 摘要:#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 评论 314 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和(参考了上一题优质题解的代码改的,记录在案) 摘要:#include #include typedef struct plural { int real; int imag; struct plural *…… 题解列表 2022年07月19日 0 点赞 0 评论 426 浏览 评分:0.0
蓝桥杯算法训练VIP-链表数据求和操作(记录在案) 摘要:#include <stdio.h> #include <malloc.h> typedef struct plural { int real; int imag; …… 题解列表 2022年07月19日 0 点赞 0 评论 342 浏览 评分:0.0
求输入数据绝对值,简单 摘要:解题思路:注意事项:1.整型用abs,浮点型用fabs.参考代码:#include<stdio.h>#include<math.h>int main(){ double a; while(scanf(…… 题解列表 2022年07月19日 0 点赞 0 评论 400 浏览 评分:0.0
01背包算法求解 摘要:解题思路:注意事项:解疑!!!!参考代码:01背包算法的二维数组求解具体代码如下:#include <stdio.h>int Max(int a,int b){ if(a>b) r…… 题解列表 2022年07月19日 0 点赞 0 评论 459 浏览 评分:0.0
奇数个数简单利用字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100],i,count=0; gets(str); fo…… 题解列表 2022年07月19日 0 点赞 0 评论 452 浏览 评分:0.0
用全排列函数next_permutation()解决 问题 摘要:解题思路:用三个for循环来找出三个不同的数的组合123 124 134 234在用next_permutation函数来输出注意事项:next_permutation不会输出原本的序列,所以用do-…… 题解列表 2022年07月19日 0 点赞 0 评论 427 浏览 评分:0.0