俗话说的不是那么好;

#include<bits/stdc++.h>
using namespace std;
set<int>st;
int t;
int ans[100005];
int main(){
	cin>>t;
	while(t--)
	{
		int n,x;
		cin>>n;
		for(int i=0;i<n;i++)
		{
			cin>>x;
			if(!st.count(x))
			{
				cout<<x<<" ";
				st.insert(x);
			}
		}
		cout<<"\n";
	}
	return 0;
}

我的收获是我距CSPJ一还有一段距离; 老师一席话如醍醐灌顶 文本stl;jjjjjjj Here is a ref[1].

std::cout()


  1. And the footnote. 天 以后我要认真学习编程 争取CSP拿到一等奖; 啊啊啊啊 ↩︎

0 条评论

目前还没有评论...