题目:

RPG_#include


题解:

计算怪兽能否在100妙前到达目的地

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<queue>
#include<stack>
#include<string>
#include<map>
#include<sstream>
#include<vector>
#include<ctime>
#include<list>
using namespace std;
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
long long ans=0;
while(n--)
{
double x,y,z;
scanf("%lf %lf %lf",&x,&y,&z);
double t;
t=sqrt(x*x+(y-100.0)*(y-100.0))/z*1.0;
double m=100.0;
if(t<=m) ans++;
}
printf("%lld\n",ans);
}
return 0;
}