题解列表
求输入数据绝对值,简单
摘要:解题思路:注意事项:1.整型用abs,浮点型用fabs.参考代码:#include<stdio.h>#include<math.h>int main(){ double a; while(scanf(……
简单便捷解决水仙花问题
摘要:解题思路此题要求水仙花数的总数,首先该用方法,即用循环的方法来便利各个数。之后确定范围。水仙花数是一个三位数,即它在100-999之间,因此,首先应确定范围。之后,了解各个位数的表达方式,用pytho……
蓝桥杯算法训练VIP-链表数据求和操作(记录在案)
摘要:#include <stdio.h>
#include <malloc.h>
typedef struct plural {
int real;
int imag;
……
蓝桥杯算法提高VIP-复数求和(参考了上一题优质题解的代码改的,记录在案)
摘要:#include
#include
typedef struct plural {
int real;
int imag;
struct plural *……
SInzoL--题解 1264: 防御导弹
摘要:####看到大多数的题解都是用数组记忆,再比较最大值来做的,我给大家提供一个不同的思路:dfs(超弱的)
###粘代码:
```cpp
#include
using namespace std……
[编程入门]选择排序
摘要:#include<stdio.h>
int main()
{
int a[10],min,key,i,j;
for(i=0;i<10;i++)
{
scanf("%d ……
超好懂的字符串的连接
摘要:解题思路:就两个char 类型的函数呗,先输入,在写一个函数用另一个数组将它们存储,最后输出即可;注意事项:注意先后顺序即可;参考代码:#include<stdio.h>#include<string……
字符串编码(C++)
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ string str; cin >> str; int ……
编写题解 1017: [编程入门]完数的判断(未使用数组)
摘要:```c
//完数的判断
#include
int main(){
int n;
scanf("%d", &n);
for( int i=1; i……