Code
#include <stdio.h>
int main()
{
int n,xb,yb,xt,yt,a,b;
while(~scanf("%d",&n))
{
scanf("%d %d",&xb,&yb);
scanf("%d %d",&xt,&yt);
int count = 0;
while(n--)
{
scanf("%d %d",&a,&b);
if((a>xb && a<xt) && (b>yb && b<yt))
count++;
}
printf("%d\n",count);
}
return 0;
}
反思:for循环练习,判断点是否在区域内,输出在区域内的点数即可。