| 比赛 | NOIP模拟赛by mzx Day1 | 评测结果 | WWWWWWWWWW | 
    | 题目名称 | 为爱追寻 | 最终得分 | 0 | 
    | 用户昵称 | Earl_WR | 运行时间 | 3.337 s | 
    | 代码语言 | C++ | 内存使用 | 0.28 MiB | 
    | 提交时间 | 2016-10-19 18:52:46 | 
显示代码纯文本
//t1暴力版
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <iomanip>
#include <cstring>
using namespace std;
long long n,x0,y_,xt,yt,x1,y_1;
int read()
{
	int x=0,f=1;char ch=getchar();
	while (ch<'0' || ch>'9'){if (ch=='-')f=-1;ch=getchar();}
	while (ch>='0' && ch<='9'){x=x*10+ch-'0';ch=getchar();}
	return x*f;
}
int main()
{
	freopen ("loverfinding.in","r",stdin);
	freopen ("loverfinding.out","w",stdout);
	ios::sync_with_stdio(false);
	n=read();x0=read();y_=read();xt=read();yt=read();
	for (int i=1;i<=n;i++)
	{
		x1=read();y_1=read();
		x0+=x1;y_+=y_1;
		if (x0==xt && y_==yt)
		{
			cout<<i<<endl;
			return 0;
		}
	}
	cout<<"SingleDogMZX"<<endl;
	return 0;
}