| 记录编号 | 326447 | 评测结果 | TTTTTTTTTT | 
    
        | 题目名称 | 2506.为爱追寻 | 最终得分 | 0 | 
    
        | 用户昵称 |  派特三石 | 是否通过 | 未通过 | 
    
        | 代码语言 | C++ | 运行时间 | 10.001 s | 
    
        | 提交时间 | 2016-10-21 08:02:15 | 内存使用 | 0.28 MiB | 
    
    
    
    		显示代码纯文本
		
		#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<map>
#define pa system("pause")
using namespace std;
const int maxn=5010;
typedef long long LL;
int n,ax,ay,bx,by,ans;
map<LL,bool> mp;
int main()
{
	freopen("loverfinding.in","r",stdin);
	freopen("loverfinding.out","w",stdout);
	scanf("%d%d%d%d%d",&n,&ax,&ay,&bx,&by);mp[(ax-1)*1000000000+ay]=1;
	for(int i=1,x,y;i<=n;++i)
	{
		scanf("%d%d",&x,&y);
		ax+=x;ay+=y;
		if(!mp[(ax-1)*1000000000+ay])
		{
			ans++;mp[(ax-1)*1000000000+ay]=1;
		}
		if(ax==bx&&ay==by)
		{
			printf("%d\n",ans);
			return 0;
		}
	}
	printf("SingleDogMZX\n");
	fclose(stdin);
	fclose(stdout);
	return 0;
}