#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin>>n;
while(n--){
int t;
cin>>t;
int points=0;
while(t--){
int a,b;
cin>>a>>b;
if((a>10&&a<50)&&(b>10&&b<50)){
if(pow(a-30,2)+pow(b-30,2)<400)
points+=1;
}
if((a>90&&a<110)&&b>20&&b<40) {
if(pow(a-100,2)+pow(b-30,2)<100) points+=2;
}
if((a>165&&a<175)&&b>25&&b<35){
if(pow(a-170,2)+pow(b-30,2)<25) points+=3;
}
}
cout<<points<<endl;
}
return 0;
}
相关文章
- 在powerdesigner中,一个table,怎么在diagram中创建多个symbol
- layui实现table表格的“关键字搜索”功能
- js给table每个tr添加双击事件
- 【Docker 运维】Java 应用在 Docker 容器中启动报错:`unable to allocate file descriptor table`-二、判断与排查方法
- 【vue】el-table实现动态添加行和列
- layui table动态表头
- Fail to open the referenced table
- Windows7的文件的Message table.
- python中table是什么_python中如何创建新表格
- 解决table边框在打印中不显示的问题