明明的随机数(真的是随机数,求大佬指出错误!) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<ctime>#include<cstdlib>using namespace std;int main(){ i…… 题解列表 2023年06月21日 0 点赞 0 评论 147 浏览 评分:9.9
编写题解 1102: 明明的随机数 摘要:解题思路: 先排序再去重注意事项:参考代码:#include<stdio.h> void Srot(int* arr, int len); void Deduplication(int* arr,…… 题解列表 2023年03月22日 0 点赞 0 评论 141 浏览 评分: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 评论 275 浏览 评分:0.0
明明的随机数(水题) 摘要:```c #include int main(){ int n,i,j,k=0,a[101],b[101],t; scanf("%d",&n); for(i=0;i…… 题解列表 2023年01月18日 0 点赞 0 评论 176 浏览 评分:9.9
通俗易懂好理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[100]; int n; scanf("%d",&n); int i,j; for(i=0;i<n…… 题解列表 2022年11月28日 0 点赞 0 评论 243 浏览 评分:9.9
明明的随机数--C/C++两版 摘要:解题思路: 肯定是先排序再去重了!!!先使用快速排序法或者冒泡排序法进行排序,排序没有什么难度,如果不懂排序的可以看看我之前写的排序法(带模板的啊)。 …… 题解列表 2022年11月13日 0 点赞 0 评论 231 浏览 评分:0.0
c++——set函数自动去重排序 摘要: #include using namespace std; int main() { int n; cin>>n; int a…… 题解列表 2022年11月12日 0 点赞 0 评论 207 浏览 评分:0.0
利用数组下标来排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,num,m=0;scanf("%d",&N);int a[1001]={0};int b[1001]…… 题解列表 2022年11月08日 0 点赞 0 评论 157 浏览 评分:9.9
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i,d,k,j,t=-1,b[100],w,r; scanf ("%d",&d…… 题解列表 2022年10月30日 0 点赞 0 评论 165 浏览 评分:9.9
简单保姆式 题解 摘要:解题思路: 1、先进行排序,先不管重复的数字。这里我使用的是冒泡排序法,让两个相邻的数字比较,如果第一个数比第二个数大,就互换;反之不变。 2、排序完成了,…… 题解列表 2022年10月27日 0 点赞 0 评论 172 浏览 评分:0.0