标题:求解一道题,应该用什么结构,好懵逼!
取消只看楼主
一分钟
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2016-11-3
 问题点数:0 回复次数:1 
求解一道题,应该用什么结构,好懵逼!
Input

The first line is a positive integer t for the number of test cases.
Each test case contains two lines. The first line is an integer n (0<n<=100). The second line contains n integers.

Output

For each test case, outputs the distinct numbers in order in which they were read, seperated by one blank.

Sample Input

2
3
1 2 1
4
2 1 2 1
Sample Output

1 2
2 1
搜索更多相关主题的帖子: positive number 
2016-11-04 00:26
一分钟
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2016-11-3
得分:0 
回复 2楼 魑魅
还是不明白,是要用嵌套数组吗?
2016-11-04 07:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-470682-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.243432 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved