题解列表

筛选

思路简单,清晰明了

摘要: #判断素数 ##做这题目得先分清楚到底啥是素数,啥是合数。 质数(素数)是指在大于1的自然数中,除了1和它本身以外不再有其他因数的自然数。 合数是指在大于1的整数中除了能被1和本……

sort结构体排序

摘要:```cpp #include #include using namespace std; typedef struct Price{ int gi; int pi; double……

分糖果分糖果分糖果

摘要:解题思路:注意事项:if (a[1]!= a[i])-->a[1]比较参考代码:#include<iostream>#include<stdio.h>using namespace std;int m……

幸运数(C++)代码

摘要:解题思路:这道题直接模拟题意即可。注意事项:参考代码:#include <iostream> using namespace std; int m, n; int arr[10000000]; ……

集合union(c++)

摘要:解题思路:实际上就是链表的基本操作注意事项:参考代码:#include<iostream>using namespace std;typedef struct number { int data; s……