ZOJ Monthly, March 2018 - J Super Brain

http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=5720

题意就是给你两行数,让你输出下面的那一行中在上面那一行出现过的数,因为题目保证只出现一个重复的数并且范围较小,直接暴力即可。




#include
#include
#include
#include
using namespace std;
int T,x;
int n,m;
bool s[1000100];
int main()
{
	
	cin>>T;
	while(T--)
	{
		cin>>n;
		memset(s,0,sizeof(s));
		for(int i=0;i>x;
			s[x]=1;
		}
		for(int i=0;i>x;
			if(s[x])
				cout<

你可能感兴趣的:(杂)