多组输入输出
整形数组合并
http://www.nowcoder.com/questionTerminal/c4f11ea2c886429faf91decfaf6a310b
#include<bits/stdc++.h> using namespace std; int main() { int one,two; while( ~scanf("%d",&one) ) { set<int> solve; int temp; int loop=one; while( loop-- ) { scanf("%d",&temp); solve.insert( temp ); } scanf("%d",&two); loop=two; while( loop-- ) { scanf("%d",&temp); solve.insert( temp ); } for( auto num : solve ) { printf("%d", num ); } printf("\n"); } //system("pause"); return 0; }