明明的随机数--C/C++两版 摘要:解题思路: 肯定是先排序再去重了!!!先使用快速排序法或者冒泡排序法进行排序,排序没有什么难度,如果不懂排序的可以看看我之前写的排序法(带模板的啊)。 …… 题解列表 2022年11月13日 0 点赞 0 评论 203 浏览 评分:0.0
编写题解 1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:input()lst=list(set(int(i) for i in input().split()))lst.sort()lst=list(map(str,lst))…… 题解列表 2023年02月22日 0 点赞 0 评论 237 浏览 评分:0.0
编写题解 1102: 明明的随机数 摘要:解题思路: 先排序再去重注意事项:参考代码:#include<stdio.h> void Srot(int* arr, int len); void Deduplication(int* arr,…… 题解列表 2023年03月22日 0 点赞 0 评论 112 浏览 评分:0.0
汤少的随机数(C语言解法)先排序后去重 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string.h>using namespace std;int main(){int a[100],b,c,d;…… 题解列表 2023年06月28日 0 点赞 0 评论 107 浏览 评分:0.0
明明的随机数-一个萝卜一个坑 摘要:#include #include int main() { int N = 0 , m = 0 , num = 0 , k = 0 ; int arr[1001] = …… 题解列表 2023年07月18日 0 点赞 0 评论 131 浏览 评分:0.0
明明的随机数(记得考虑多个相同的数连在一起的情况) 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年11月16日 0 点赞 0 评论 133 浏览 评分:0.0
C语言,功能函数化 摘要:1. 通过函数实现两个功能 “去重”和“排序” 分别时repeat和sorting 2.注意运用函数返回的值 ```c #include int repeat(int n,int *p)…… 题解列表 2023年12月01日 0 点赞 0 评论 103 浏览 评分:0.0
随机数随机数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void sort(int *pInt, int total){ int i,j,temp; …… 题解列表 2023年12月19日 0 点赞 0 评论 80 浏览 评分:0.0
排序+新设数组 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cmath>#include<algorithm>#include<cstdio>using namespace …… 题解列表 2023年12月20日 0 点赞 0 评论 111 浏览 评分:0.0
#include <iostream> #include <set> using namespace std; int main() { int n 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <set>using namespace std;int main(){ int n; cin >> …… 题解列表 2024年01月23日 0 点赞 0 评论 86 浏览 评分:0.0