题解列表
C++手动实现排序和去重算法:明明的随机数
摘要:# C++实现去重和排序算法
## 排序
```c++
void Sort(int*nums,int n){
int i,j;
for(i = 1;i=0;--j){
……
题目 1023: [编程入门]选择排序
摘要:解题思路:冒泡排序注意事项:参考代码:/*题目 1023: [编程入门]选择排序题目描述用选择法对10个整数从小到大排序。输入格式输入10个无序的数字*/#include<stdio.h>int ma……
很简单且易懂的求阶乘
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(a){ int i,m=1; for(i=1;i<=a;i++) { m*=i; } ……
编写题解 1267: A+B Problem
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); printf("%d\n",a……
编写题解 2764: 带余除法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); printf("%d ",a/……
Hello, World!(C++)
摘要:#include<iostream>using namespace std;int main(){ cout<<"Hello, World!"<<endl; return 0;}……
编写题解 1098: 陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("……
C++ 数据结构-直接插入排序
摘要:# C++手撕插排
```c++
#include
using namespace std;
void Sort(int* nums, int n) {
int i = 0, j = 0……
编写题解 2824: 求出e的值
摘要:解题思路:注意事项:参考代码:n=int(input())a=1b=1for i in range(1,n+1): a=a*i c=1/a b=b+c e=b print(f'{e:……