明明的随机数 (C语言代码) 摘要:解题思路:先排序,然后再删除重复的数据,排序可以用C++中STL的sort函数,非常方便。注意事项:参考代码:#include <bits/stdc++.h> using namespace std…… 题解列表 2018年09月08日 0 点赞 0 评论 898 浏览 评分:0.0
明明的随机数 (C语言代码) 摘要:解题思路:先把后面重复的数字记为0,然后排序注意事项:参考代码:#include<stdio.h>int main(){ int n,b,c,i,j,t,a[100]; scanf("%d",…… 题解列表 2018年08月20日 2 点赞 4 评论 2181 浏览 评分:9.9
明明的随机数 (C语言代码) 摘要:解题思路:1.先对一组数进行排序这样相等的数会相邻,例如对样例进行排序, 15 20 20 32 40 40 67 89 300 400 2. …… 题解列表 2018年08月02日 0 点赞 0 评论 648 浏览 评分:0.0
明明的随机数 (C语言代码) 土办法,先排序再删除,小白级别难度 摘要:解题思路: 先讲数组排序,再删除重复内容,没有算法基础的人也可以搞定注意事项: 注意remove函数系统自带,所以要稍微改一下变量名,比如下面的代码我原本自定义函数名字就是remove()…… 题解列表 2018年07月24日 0 点赞 0 评论 480 浏览 评分:0.0
明明的随机数 (Java代码)_TreeSet秒杀的 摘要:解题思路:使用TreeSet类加入时自动排序和去重注意事项:参考代码:package cWeb.acm; import java.util.Scanner; import java.util.…… 题解列表 2018年06月23日 0 点赞 0 评论 718 浏览 评分:0.0
明明的随机数 (Java代码) 摘要:解题思路:注意事项:开局10连wa,我以为是其他错了,没想到忘判断i==0的条件了参考代码:package cWeb.acm; import java.util.ArrayList; impo…… 题解列表 2018年06月23日 0 点赞 0 评论 1104 浏览 评分:2.0
明明的随机数 (C语言代码)-----------------C语言——菜鸟级 摘要:解题思路:因为数据数值小 <1000 所以直接开1000大小数组存下就好了 就解决了排序问题 再有就是通过 异或 解决了重复问题 可以看看代码 注意事项:参考代码:#include <stdio.h>…… 题解列表 2018年06月07日 12 点赞 5 评论 1416 浏览 评分:9.3
明明的随机数 (C语言代码) 摘要:#include <stdio.h> int main(){ int m,i,j,t,count=0;scanf("%d",&m); int a[m],b[m]; for(i=0;i<m…… 题解列表 2018年05月29日 0 点赞 0 评论 680 浏览 评分:0.0
明明的随机数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int N,k,*V; int …… 题解列表 2018年05月27日 0 点赞 0 评论 447 浏览 评分:0.0
明明的随机数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int N,i,j,min,k=0; int num[101]; scanf("%d",&N…… 题解列表 2018年05月27日 0 点赞 0 评论 625 浏览 评分:0.0