兔子爱叫 level
获赞
55
粉丝
2
关注
3
看过 TA
5
东北大学
2017
IP属地:未知
暂未填写个人简介
私信
关注
2017-04-11 15:35
东北大学
有视频课程的那种 求推荐
天行键:极客学院上面有系列教程:Hadoop,hive,habase,storm,spark,kafka等,比较全面,可以去看看
0 点赞 评论 收藏
分享
2017-02-27 14:04
已编辑
东北大学
package test;  import java.util.ArrayList; import java.util.Scanner;  public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } ArrayList<Integer> arr...
wrc:原因是测试数据有多组 要加个while循环…… 然后题目说数据是1到1000,用桶排序就可以了 public static void main(String[] args) { int[] map; Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int n = sc.nextInt(); map = new int[1001]; for (int i = 0; i < n; i++) { map[sc.nextInt()] = 1; } for (int i = 1; i < 1001; i++) { if (map[i] == 1) { System.out.println(i); } } } }
投递华为等公司9个岗位 >
0 点赞 评论 收藏
分享

创作者周榜

更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务