buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
line = input().split()
number = int(line[0])
distance = int(line[1])
import math
cnt =0
print(number)
for i in range(number):
position = input().split()
x = int(position[0])
y = int(position[1])
origin_dis = math.sqrt(x*x+y*y)
if origin_dis <=distance:
cnt +=1
print(cnt) | line = input().split()
number = int(line[0])
distance = int(line[1])
import math
cnt =0
for i in range(number):
position = input().split()
x = int(position[0])
y = int(position[1])
origin_dis = math.sqrt(x*x+y*y)
if origin_dis <=distance:
cnt +=1
print(cnt) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 97 |
N,D=(int(x) for x in input().split())
xy = [map(int, input().split()) for _ in range(N)]
x, y = [list(i) for i in zip(*xy)]
count=0
for i in range(N) :
z=x[i]**2+y[i]**2
if z<=D :
count+=1
print(count) | N,D=(int(x) for x in input().split())
xy = [map(int, input().split()) for _ in range(N)]
x, y = [list(i) for i in zip(*xy)]
count=0
for i in range(N) :
z=x[i]**2+y[i]**2
if z<=D**2 :
count+=1
print(count) | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 99 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// freopen("input01.txt", "r", stdin);
// freopen("output01.txt", "w", stdout);
int n, d;
cin >> n >> d;
int a, b, ct = 0;
int i, j;
for (i = 0; i < n; i++) {
cin >> a >> b;
if ((int)(pow(a, 2) + pow(b, 2)) <= d * d)
ct++;
}
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
// freopen("input01.txt", "r", stdin);
// freopen("output01.txt", "w", stdout);
int n, d;
cin >> n >> d;
int a, b, ct = 0;
int i, j;
for (i = 0; i < n; i++) {
cin >> a >> b;
if ((int)ceil(sqrt(pow(a, 2) + pow(b, 2))) <= d)
ct++;
}... | [["+", 15, 339, 51, 16, 31, 74, 51, 2, 63, 22], ["+", 51, 16, 31, 74, 51, 2, 3, 4, 0, 24], ["+", 31, 74, 51, 2, 3, 4, 0, 2, 63, 22], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 25], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 95 |
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#define pi 3.14159265358979323846
#define ll long long
#define rep(i, a, n) for (int i = a; i < n; i++)
using namespace std;
int main() {
ll n, d, sm = 0;
cin >> n >> d;
d = d * d;
int x[n], y[n], z[n]... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#define pi 3.14159265358979323846
#define ll long long
#define rep(i, a, n) for (int i = a; i < n; i++)
using namespace std;
int main() {
ll n, d, sm = 0;
cin >> n >> d;
d = d * d;
ll int x[n], y[n], z... | [["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 165 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
int D, N, count = 0;
cin >> N >> D;
cout << endl;
vector<ll> x(N);
vector<ll> y(N);
rep(i, N) {
cin >> x.at(i) >> y.at(i);
ll a = D * D - x.at(i) * x.at(i) - y.at(i) * ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
ll D, N, count = 0;
cin >> N >> D;
cout << endl;
vector<ll> x(N);
vector<ll> y(N);
rep(i, N) {
cin >> x.at(i) >> y.at(i);
ll a = D * D - x.at(i) * x.at(i) - y.at(i) * y... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 137 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int D = scan.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
int x = scan.nextInt();
int y = scan.nextInt();
i... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int D = scan.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
int x = scan.nextInt();
int y = scan.nextInt();
d... | [["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 8, 196, 0, 503, 49, 200, 51, 74, 0, 24], ["-", 0, 503, 49, 200, 51, 74, 39, 506, 0, 507], ["-", 8, 196, 0, 503, 49, 200, 51, 74, 0, 25]] | 3 | 145 |
n, d = map(int, input().split())
res = 0
for i in range(n):
x, y = map(int, input().split())
if x ** 2 + y ** 2 <= d:
res += 1
print(res) | n, d = map(int, input().split())
res = 0
for i in range(n):
x, y = map(int, input().split())
if x ** 2 + y ** 2 <= d ** 2:
res += 1
print(res) | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 61 |
import math
n,d = map(int,input().split())
c = 0
for i in range (n):
a,b = map(int,input().split())
if math.sqrt(a*a +b *b) >=d:
c+=1
print(c)
| import math
n,d = map(int,input().split())
c = 0
for i in range (n):
a,b = map(int,input().split())
if math.sqrt(a*a +b*b) <=d:
c+=1
print(c)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 68 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i, (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
if (n == 0) {
return 0;
}
int s = sum(n - 1);
return s + n;
}
int main() {
int N, D, a, b, count = 0;
double c;
cin >>... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i, (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
if (n == 0) {
return 0;
}
int s = sum(n - 1);
return s + n;
}
int main() {
ll N, D, a, b, count = 0;
double c;
cin >> ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 204 |
n, d = map(int, input().split(" "))
p = []
ans = 0
for i in range(n):
p.append(list(map(int, input().split(" "))))
for i, [x, y] in enumerate(p):
if(x >= d or y >= d):
continue
if(x**2 + y**2 <= d**2):
ans += 1
print(ans)
| n, d = map(int, input().split(" "))
p = []
ans = 0
for i in range(n):
p.append(list(map(int, input().split(" "))))
for i, [x, y] in enumerate(p):
if(x > d or y > d):
continue
if(x**2 + y**2 <= d**2):
ans += 1
print(ans) | [["-", 0, 57, 15, 23, 0, 679, 31, 666, 667, 20], ["+", 0, 57, 15, 23, 0, 679, 31, 666, 667, 47], ["-", 0, 57, 15, 23, 0, 679, 12, 666, 667, 20], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 667, 47]] | 5 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
vector<int> x(n);
vector<int> y(n);
for (int i = 0; i < n; i++)
cin >> x.at(i) >> y.at(i);
int count = 0;
for (int i = 0; i < n; i++) {
if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d)
count++;
}
cout << count... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
vector<double> x(n);
vector<double> y(n);
for (int i = 0; i < n; i++)
cin >> x.at(i) >> y.at(i);
int count = 0;
for (int i = 0; i < n; i++) {
if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d)
count++;
}
cout <<... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]] | 1 | 126 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n = 0, d = 0;
cin >> n >> d;
ll ans = 0;
for (ll i = 0; i < n; i++) {
ll x = 0, y = 0;
cin >> x >> y;
if (d * d == ((x * x) + (y * y)))
ans++;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n = 0, d = 0;
cin >> n >> d;
ll ans = 0;
for (ll i = 0; i < n; i++) {
ll x = 0, y = 0;
cin >> x >> y;
if (d * d >= ((x * x) + (y * y)))
ans++;
}
cout << ans;
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 96 |
#include <iostream>
using namespace std;
int main() {
int n, d, x, y;
cin >> n >> d;
int cnt = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
cnt++;
}
cout << cnt << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long n, d, x, y;
cin >> n >> d;
int cnt = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
cnt++;
}
cout << cnt << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 80 |
n, d = map(int, input().split())
xy = []
for i in range(n):
a, b = map(int, input().split())
x.append([a, b])
count = 0
for xi, yi in xy:
count += xi**2 + yi**2 <= d**2
print(count) | n, d = map(int, input().split())
xy = []
for i in range(n):
a, b = map(int, input().split())
xy.append([a, b])
count = 0
for xi, yi in xy:
count += xi**2 + yi**2 <= d**2
print(count) | [["-", 8, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 8, 196, 0, 1, 0, 652, 63, 319, 500, 22]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
int main() {
int n, d, c = 0;
cin >> n >> d;
REP(i, n) {
int a, b;
cin >> a >> b;
if (a * a + b * b <= d * d)
c++;
}
cout << c << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
int main() {
int n, c = 0;
ll d;
cin >> n >> d;
REP(i, n) {
ll a, b;
cin >> a >> b;
if (a * a + b * b <= d * d)
c++;
}
cout << c << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n, d, count = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
ll p, q;
cin >> p >> q;
ll x = p * p + q * q;
ll y = abs(sqrt(x));
if (y <= d)
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n, d, count = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
ll p, q;
cin >> p >> q;
ll x = p * p + q * q;
double y = abs(sqrt(x));
if (y <= d)
... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 120 |
import math
N, D = list(map(int, input().split()))
result = 0
list = []
count = 0
for i in range(N):
X, Y = map(int, input().split())
result = math.sqrt(X**2 + Y**2)
list.append(result)
for j in list:
if j >= D:
count += 1 | import math
N, D = list(map(int, input().split()))
result = 0
list = []
count = 0
for i in range(N):
X, Y = map(int, input().split())
result = math.sqrt(X**2 + Y**2)
list.append(result)
for j in list:
if j <= D:
count += 1
print(count) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 88 |
import math
n,d = map(int,input().split(' '))
x,y = [0]*n,[0]*n
for i in range(n):
x[i],y[i] = map(int,input().split(' '))
ans = 0
for i in range(n):
distane = math.sqrt(x[i]*x[i] + y[i]*y[i])
if distane >= d:
ans += 1
print(ans) | import math
n,d = map(int,input().split(' '))
x,y = [0]*n,[0]*n
for i in range(n):
x[i],y[i] = map(int,input().split(' '))
ans = 0
for i in range(n):
distane = math.sqrt(x[i]*x[i] + y[i]*y[i])
if distane <= d:
ans += 1
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 118 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
long N, D, output = 0;
cin >> N;
cin >> D;
long *X = (long *)malloc(N * sizeof(long));
long *Y = (long *)malloc(N * sizeof(long));
double *distances = (double *)malloc(N * sizeof(float));
for (long i = 0; i < N; i++) {
cin >> X... | #include <cmath>
#include <iostream>
using namespace std;
int main() {
long N, D, output = 0;
cin >> N;
cin >> D;
long *X = (long *)malloc(N * sizeof(long));
long *Y = (long *)malloc(N * sizeof(long));
double *distances = (double *)malloc(N * sizeof(double));
for (long i = 0; i < N; i++) {
cin >> ... | [["-", 3, 4, 0, 16, 12, 105, 39, 77, 39, 40], ["+", 3, 4, 0, 16, 12, 105, 39, 77, 39, 40]] | 1 | 180 |
#include <cmath>
#include <iostream>
int main(void) {
int n;
int d;
std::cin >> n >> d;
unsigned int nb = 0;
for (int i = 0; i < n; i++) {
int x, y;
std::cin >> x >> y;
if (sqrt(pow(x, 2) - pow(y, 2)) <= d) {
nb++;
}
}
std::cout << nb;
return 0;
} | #include <cmath>
#include <iostream>
int main(void) {
int n;
int d;
std::cin >> n >> d;
unsigned int nb = 0;
for (int i = 0; i < n; i++) {
int x, y;
std::cin >> x >> y;
if (sqrt(pow(x, 2) + pow(y, 2)) <= d) {
nb++;
}
}
std::cout << nb;
return 0;
} | [["-", 51, 16, 31, 2, 3, 4, 0, 16, 17, 33], ["+", 51, 16, 31, 2, 3, 4, 0, 16, 17, 72]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int> X(N);
vector<int> Y(N);
int count = 0;
for (int i = 0; i < N; i++) {
cin >> X.at(i) >> Y.at(i);
if (X.at(i) * X.at(i) + Y.at(i) * Y.at(i) <= D * D) {
count = count + 1;
}
}
cout << count... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, D;
cin >> N >> D;
vector<long long> X(N);
vector<long long> Y(N);
int count = 0;
for (int i = 0; i < N; i++) {
cin >> X.at(i) >> Y.at(i);
if (X.at(i) * X.at(i) + Y.at(i) * Y.at(i) <= D * D) {
count = count + 1;
}
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 126 |
/*@author Vipen Loka*/
#include <bits/stdc++.h>
#define endl '\n'
#define ff first
#define ss second
#define ll long long int
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#de... | /*@author Vipen Loka*/
#include <bits/stdc++.h>
#define endl '\n'
#define ff first
#define ss second
#define ll long long int
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#de... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int count = 0;
while (n--) {
/* code */
int x, y;
cin >> x >> y;
if (pow(x * x + y * y, 0.5) <= d) {
count++;
}
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int count = 0;
while (n--) {
/* code */
long long int x, y;
cin >> x >> y;
if (pow(x * x + y * y, 0.5) <= d) {
count++;
}
}
cout << count << endl;
return 0;
} | [["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
using ll = long long;
using P = pair<int, int>;
int main() {
int n, d;
cin >> n >> d;
vector<int> x(n), y(n);
rep(i, ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
using ll = long long;
using P = pair<int, int>;
#define int long long
signed main() {
int n, d;
cin >> n >> d;
vector<i... | [["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 0, 30, 0, 14, 39, 86, 0, 156]] | 1 | 143 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, x, y;
cin >> n >> d;
int cnt = 0;
while (n--) {
cin >> x >> y;
if (d >= x * x + y * y)
cnt++;
}
cout << cnt << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, x, y;
cin >> n >> d;
int cnt = 0;
while (n--) {
cin >> x >> y;
if (d * d >= x * x + y * y)
cnt++;
}
cout << cnt << endl;
return 0;
}
| [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 70 |
N, D = map(int, input().split())
ans = 0
for i in range(n):
x, y = map(int, input().split())
if (x**2+y**2) <= D**2:
ans +=1
else:
ans +=0
print(ans) | N, D = map(int, input().split())
ans = 0
for i in range(N):
x, y = map(int, input().split())
if (x**2+y**2) <= D**2:
ans +=1
else:
ans +=0
print(ans)
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 70 |
import math
n,d = map(int,input().split())
cou = 0
for i in range(n):
a,b = map(int,input().split())
dis = math.sqrt(a*a+b*b)
if dis < d:
cou +=1
print(cou)
| import math
n,d = map(int,input().split())
cou = 0
for i in range(n):
a,b = map(int,input().split())
dis = math.sqrt(a*a+b*b)
if dis <= d:
cou +=1
print(cou)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int ans = 0;
int N, D;
cin >> N >> D;
for (int i = 0; i < N; i++) {
int a, b;
cin >> a >> b;
if (sqrt(a * a + b * b) <= D) {
ans++;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int ans = 0;
int N, D;
cin >> N >> D;
for (int i = 0; i < N; i++) {
double a, b;
cin >> a >> b;
if (sqrt(a * a + b * b) <= D) {
ans++;
}
}
cout << ans << endl;
} | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t, n;
cin >> t >> n;
int count = 0;
while (t--) {
int x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= n)
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int t, n;
cin >> t >> n;
long long int count = 0;
while (t--) {
long long int x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= n)
count++;
}
cout << count << endl;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 70 |
n,d = map(int,input().split())
from math import sqrt
count = 0
for _ in range(n):
x,y = map(int,input().split())
m = sqrt(x**2 + y**2)
if m <= d:
count += 1
print(ccount) | n,d = map(int,input().split())
from math import sqrt
count = 0
for i in range(n):
x,y = map(int,input().split())
m = sqrt(x**2 + y**2)
if m <= d:
count += 1
print(count)
| [["-", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 71 |
#include <algorithm>
#include <functional>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define intmax INT_MAX
#define lmax LONG_MAX
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define intmax INT_MAX
#define lmax LONG_MAX
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 474 |
#include <stdio.h>
int main() {
int N;
long int D;
scanf("%d%d", &N, &D);
long int x[N], y[N], d;
int i, count = 0;
for (i = 0; i < N; i++) {
scanf("%d%d", &x[i], &y[i]);
d = x[i] * x[i] + y[i] * y[i];
if (d <= D * D) {
count++;
}
}
printf("%d", count);
return 0;
}
| #include <stdio.h>
int main() {
int N;
long int D;
scanf("%d%ld", &N, &D);
long int x[N], y[N], d;
int i, count = 0;
for (i = 0; i < N; i++) {
scanf("%ld%ld", &x[i], &y[i]);
d = x[i] * x[i] + y[i] * y[i];
if (d <= D * D) {
count++;
}
}
printf("%d", count);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 130 |
#include <stdio.h>
int main() {
int n;
int d;
scanf("%d %d", &n, &d);
int x, y;
int count = 0;
for (int i = 0; i < n; i++) {
scanf("%d %d", &x, &y);
if (x * x + y * y <= d * d) {
count++;
}
}
printf("%d", count);
return 0;
}
| #include <stdio.h>
int main() {
int n;
long int d;
scanf("%d %ld", &n, &d);
long int x, y;
int count = 0;
for (int i = 0; i < n; i++) {
scanf("%ld %ld", &x, &y);
if (x * x + y * y <= d * d) {
count++;
}
}
printf("%d", count);
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 97 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, d, x, y, sum = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
sum++;
}
cout << sum << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
long n, d, x, y, sum = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
sum++;
}
cout << sum << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int> A(N);
vector<int> B(N);
for (int i = 0; i < N; i++) {
cin >> A.at(i) >> B.at(i);
}
int ans = 0;
for (int i = 0; i < N; i++) {
double d = sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i));
if (d <= D) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int64_t> A(N);
vector<int64_t> B(N);
for (int i = 0; i < N; i++) {
cin >> A.at(i) >> B.at(i);
}
int ans = 0;
for (int i = 0; i < N; i++) {
double d = sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i));
if (d... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]] | 1 | 145 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long ans = 0;
for (int i = 0; i < n; i++) {
long long x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 81 |
import sys
import math
line = input()
N = line.split(' ')[0]
D = line.split(' ')[1]
count = 0
for i in range(1,int(N)):
inputs = input()
X = int(inputs.split(' ')[0])
Y = int(inputs.split(' ')[1])
if(math.sqrt(pow(X,2) + pow(Y,2)) <= int(D) ):
count = count + 1
print(count)
| import sys
import math
line = input()
N = line.split(' ')[0]
D = line.split(' ')[1]
count = 0
for i in range(int(N)):
inputs = input()
X = int(inputs.split(' ')[0])
Y = int(inputs.split(' ')[1])
if(math.sqrt(pow(X,2) + pow(Y,2)) <= int(D) ):
count = count + 1
print(count)
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 124 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, D, x, y;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= D)
count++;
}
cout << count;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N;
long D;
long x, y;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= D)
count++;
}
cout << count;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
d = d * d;
int ans = 0;
int x, y, d1;
for (int i = 0; i < n; i++) {
cin >> x >> y;
d1 = x * x + y * y;
if (d1 <= d)
ans++;
}
cout << ans;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long n, d;
cin >> n >> d;
d = d * d;
int ans = 0;
long x, y, d1;
for (int i = 0; i < n; i++) {
cin >> x >> y;
d1 = x * x + y * y;
// cout<<d1;
if (d1 <= d)
ans++;
}
cout << ans;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 89 |
#include <bits/stdc++.h>
// Begin Header {{{
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define rep(i, n) for (ll i = 1; i < n; i++)
#define loop(i, j, n) for (ll i = j; i < n; i++)
#define all(x) (x).begin(), (x).end()
constexpr int INF = 0x3f3f3f40;
const long... | #include <bits/stdc++.h>
// Begin Header {{{
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define loop(i, j, n) for (ll i = j; i < n; i++)
#define all(x) (x).begin(), (x).end()
constexpr int INF = 0x3f3f3f40;
const long... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 150 |
N,D=input().split(" ")
count=0
for n in range(int(N)):
x,y=input().split(" ")
if pow(pow(x,2)+pow(y,2),0.5)<=int(D):
count+=1
print(count)
| N,D=input().split(" ")
count=0
for n in range(int(N)):
x,y=input().split(" ")
if pow(pow(int(x),2)+pow(int(y),2),0.5)<=int(D):
count+=1
print(count)
| [["+", 0, 657, 31, 652, 3, 4, 0, 652, 63, 22], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 0, 657, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 74 |
#define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long N, D, x, y;
double count = 0, X[2 * (int)pow(10, 5)], Y[2 * (int)pow(10, 5)];
scanf("%ld", &N);
scanf("%ld", &D);
for (int n = 0; n < N; n++) {
scanf("%ld", &x);
scanf("%ld", &y);
X[n] = x;
... | #define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long N, D, x, y;
int count = 0;
double X[2 * (int)pow(10, 5)], Y[2 * (int)pow(10, 5)];
scanf("%ld", &N);
scanf("%ld", &D);
for (int n = 0; n < N; n++) {
scanf("%ld", &x);
scanf("%ld", &y);
X[n]... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 173 |
#define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long N, D, x, y, ab, c = 0, X[2 * (int)pow(10, 5)], Y[2 * (int)pow(10, 5)];
scanf("%ld", &N);
scanf("%ld", &D);
for (int n = 0; n < N - 1; n++) {
scanf("%ld", &x);
scanf("%ld", &y);
X[n] = x;
Y... | #define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long N, D, x, y, ab, c = 0, X[2 * (int)pow(10, 5)], Y[2 * (int)pow(10, 5)];
scanf("%ld", &N);
scanf("%ld", &D);
for (int n = 0; n < N; n++) {
scanf("%ld", &x);
scanf("%ld", &y);
X[n] = x;
Y[n] ... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 0 | 176 |
#include <stdio.h>
int main(void) {
int n, x, y, a, d, c;
n = 0;
x = 0;
y = 0;
d = 0;
a = 0;
c = 0;
scanf("%d", &n);
scanf("%d", &d);
for (a = 0; a < n; a++) {
scanf("%d", &x);
scanf("%d", &y);
if (x * x + y * y <= d * d) {
c++;
}
}
printf("%d\n", c);
}
| #include <stdio.h>
int main(void) {
long n, x, y, a, d, c;
n = 0;
x = 0;
y = 0;
d = 0;
a = 0;
c = 0;
scanf("%ld", &n);
scanf("%ld", &d);
for (a = 0; a < n; a++) {
scanf("%ld", &x);
scanf("%ld", &y);
if (x * x + y * y <= d * d) {
c++;
}
}
printf("%ld\n", c);
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 130 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int D, N, count;
count = 0;
cin >> N >> D;
vector<int> X(N), Y(N);
for (int i = 0; i < N; i++) {
cin >> X[i] >> Y[i];
}
for (int i = 0; i < N; i++) {
if (X[i] * X[i] + Y[i] * Y[i] <= D * D) {
count++;
}
}
cout << count << e... | #include <bits/stdc++.h>
using namespace std;
int main() {
long D, N, count;
count = 0;
cin >> N >> D;
vector<long> X(N), Y(N);
for (int i = 0; i < N; i++) {
cin >> X[i] >> Y[i];
}
for (int i = 0; i < N; i++) {
if (X[i] * X[i] + Y[i] * Y[i] <= D * D) {
count++;
}
}
cout << count <<... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 124 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, count;
cin >> N >> D;
vector<int> x(N);
vector<int> y(N);
count = 0;
for (int i = 0; i < N; i++) {
cin >> x[i] >> y[i];
int a = x[i] * x[i];
int b = y[i] * y[i];
double c = sqrt(a + b);
if (c <= D) {
count++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, count;
cin >> N >> D;
vector<double> x(N);
vector<double> y(N);
count = 0;
for (int i = 0; i < N; i++) {
cin >> x[i] >> y[i];
double a = x[i] * x[i];
double b = y[i] * y[i];
double c = sqrt(a + b);
if (c <= D) {
... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 128 |
#include <math.h>
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int d;
scanf("%d", &d);
long x[n];
long y[n];
int count = 0;
double length = 0;
for (int i = 0; i < n; i++) {
scanf("%d", &x[i]);
scanf("%d", &y[i]);
if (sqrt(pow(x[i], 2) + pow(y[i], 2)) <= d) {
count++;
... | #include <math.h>
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int d;
scanf("%d", &d);
long x[n];
long y[n];
int count = 0;
double length = 0;
for (int i = 0; i < n; i++) {
scanf("%ld", &x[i]);
scanf("%ld", &y[i]);
if (sqrt(pow(x[i], 2) + pow(y[i], 2)) <= d) {
count++;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 145 |
#include <math.h>
#include <stdio.h>
int main() {
int N, i, a = 0;
double ans, D, ans1;
double X[200001], Y[200001];
scanf("%d %lf", &N, &D);
for (i = 0; i <= N; i++) {
scanf("%lf %lf", &X[i], &Y[i]);
}
for (i = 0; i <= N; i++) {
ans1 = pow(X[i], 2.0) + pow(Y[i], 2.0);
ans = sqrt(ans1);
if... | #include <math.h>
#include <stdio.h>
int main() {
int N, i, a = 0;
double ans, D, ans1;
double X[200001], Y[200001];
scanf("%d %lf", &N, &D);
for (i = 1; i <= N; i++) {
scanf("%lf %lf", &X[i], &Y[i]);
}
for (i = 1; i <= N; i++) {
ans1 = pow(X[i], 2.0) + pow(Y[i], 2.0);
ans = sqrt(ans1);
if... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20]] | 0 | 148 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
int tx, ty;
cin >> tx >> ty;
if ((tx * tx + ty * ty) <= (d * d)) {
count++;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
long tx, ty;
cin >> tx >> ty;
if ((tx * tx + ty * ty) <= (d * d)) {
count++;
}
}
cout << count << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 84 |
# -*- coding: utf-8 -*-
n, d = map(int, input().split())
i = 0
num = 0
while i < n:
x, y = map(int, input().split())
_d = sqrt((x*x) + (y*y))
if _d <= d:
num += 1
i += 1
print(num) | import math
# -*- coding: utf-8 -*-
n, d = map(int, input().split())
i = 0
num = 0
while i < n:
x, y = map(int, input().split())
_d = math.sqrt((x*x) + (y*y))
if _d <= d:
num += 1
i += 1
print(num) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131]] | 5 | 75 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
double X = sc.nextDouble();
double Y = sc.nextDouble();
double distance... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
double X = sc.nextDouble();
double Y = sc.nextDouble();
double distance... | [["-", 3, 4, 0, 16, 12, 492, 3, 4, 0, 22], ["+", 3, 4, 0, 16, 12, 492, 3, 4, 0, 22]] | 3 | 142 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int x, y, ans = 0;
while (n--) {
cin >> x >> y;
int a = sqrt(x * x + y * y);
if (a <= d)
ans++;
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
double x, y;
int ans = 0;
while (n--) {
cin >> x >> y;
double a = sqrt(x * x + y * y);
if (a <= d)
ans++;
}
cout << ans;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40]] | 1 | 72 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int count = 0;
for (int i = 0; i < N; i++) {
int x = sc.nextInt();
int y = sc.nextInt();
if (D >= Math.sqrt(x * x + y ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double D = sc.nextDouble();
int count = 0;
for (int i = 0; i < N; i++) {
double x = sc.nextDouble();
double y = sc.nextDouble();
if (D >= Ma... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 511, 0, 512]] | 3 | 123 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int T = 1;
for (int t = 1; t <= T; t++) {
long long n, d;
cin >> n >> d;
long long count = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if ((x * x) + (y * y) <= d * d)
count++;
}
cout << count... | #include <bits/stdc++.h>
using namespace std;
int main() {
int T = 1;
for (int t = 1; t <= T; t++) {
long long n, d;
cin >> n >> d;
long long count = 0;
for (int i = 0; i < n; i++) {
long long x, y;
cin >> x >> y;
if ((x * x) + (y * y) <= d * d)
count++;
}
cout <<... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 108 |
count=0
N,D=map(int,input().split())
while N:
X, Y = map(int, input().split())
if X * X + Y * Y - 25 > 0:
pass
else:
count += 1
N-=1
print(count) | count=0
N,D=map(int,input().split())
while N:
X, Y = map(int, input().split())
if X * X + Y * Y - D*D > 0:
pass
else:
count += 1
N-=1
print(count) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 31, 22], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 17, 48], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 12, 22]] | 5 | 64 |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
int count = 0;
for (int i = 0; i < n; i++) {
long x = sc.nextLong();
long y = sc.nextLong();
long dis = (long)Math.s... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
int count = 0;
for (int i = 0; i < n; i++) {
long x = sc.nextLong();
long y = sc.nextLong();
double dis = Math.sqrt(... | [["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 96], ["+", 0, 7, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 8, 196, 0, 503, 49, 200, 51, 74, 0, 24], ["-", 0, 503, 49, 200, 51, 74, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 49, 200, 51, 74, 0, 25]] | 3 | 135 |
import numpy as np
INP = input()
N = int(INP.split()[0])
D = int(INP.split()[1])
ANS = 0
for i in range(N-1):
INP = input()
X=int(INP.split()[0])
Y=int(INP.split()[1])
if np.sqrt(X**2+Y**2) <= D:
ANS = ANS+1
print(ANS)
| import numpy as np
INP = input()
N = int(INP.split()[0])
D = int(INP.split()[1])
ANS = 0
for i in range(N):
INP = input()
X=int(INP.split()[0])
Y=int(INP.split()[1])
if np.sqrt(X**2+Y**2) <= D:
ANS = ANS+1
print(ANS)
| [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 104 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int n, d;
scanf("%lld%lld", &n, &d);
int ans = 0;
d *= d;
for (int i = 0; i < n; i++) {
int x, y;
scanf("%lld%lld", &x, &y);
if (x * x + y * y == d)
ans++;
}
printf("%lld\n", ans);
} | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int n, d;
scanf("%lld%lld", &n, &d);
int ans = 0;
d *= d;
for (int i = 0; i < n; i++) {
int x, y;
scanf("%lld%lld", &x, &y);
if (x * x + y * y <= d)
ans++;
}
printf("%lld\n", ans);
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
int a, b, i, p = 0;
int num[200000] = {0};
int nun[200000] = {0};
cin >> a >> b;
for (i = 0; i < a; i++) {
cin >> num[i] >> nun[i];
}
for (i = 0; i < a; i++) {
if (num[i] * num[i] + nun[i] * nun[i] <= b * b) {
p++;
}
}
cout ... | #include <iostream>
using namespace std;
int main() {
long a, b;
int i, p = 0;
long num[200000] = {0};
long nun[200000] = {0};
cin >> a >> b;
for (i = 0; i < a; i++) {
cin >> num[i] >> nun[i];
}
for (i = 0; i < a; i++) {
if (num[i] * num[i] + nun[i] * nun[i] <= b * b) {
p++;
}
}
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 129 |
#include <stdio.h>
int main(void) {
int n, d;
int x, y;
scanf("%d %d", &n, &d);
int ans = 0;
for (int i = 0; i < n; i++) {
scanf("%d %d", &x, &y);
if (x * x + y * y <= d * d) {
ans++;
}
}
printf("%d\n", ans);
return 0;
}
| #include <stdio.h>
int main(void) {
long int n, d;
long int x, y;
scanf("%ld %ld", &n, &d);
int ans = 0;
for (int i = 0; i < n; i++) {
scanf("%ld %ld", &x, &y);
if (x * x + y * y <= d * d) {
ans++;
}
}
printf("%d\n", ans);
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 98 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int n = 0;
int d = 0;
cin >> n >> d;
vector<int> x(n), y(n);
for (int i = 0; i < n; i++) {
cin >> x[i] >> y[i];
}
int count = 0;
for (int i = 0; i < n; i++) {
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
using ll = long long;
int main() {
ll n = 0;
ll d = 0;
cin >> n >> d;
vector<ll> x(n), y(n);
for (ll i = 0; i < n; i++) {
cin >> x[i] >> y[i];
}
ll count = 0;
for (ll i = 0; i < n; i++) {
do... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 7, 10, 43, 39, 78]] | 1 | 152 |
#include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | #include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 152 |
#include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
int main() {
int n, d, x, y, ans = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
int main() {
ll n, d, x, y, ans = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 81 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ldb;
typedef unsigned int ui;
typedef unsigned long ul;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef vector<int> vi;
typedef vector<ll> vl;
type... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ldb;
typedef unsigned int ui;
typedef unsigned long ul;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef vector<int> vi;
typedef vector<ll> vl;
type... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 7, 10, 43, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]] | 1 | 229 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int x, y, count = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt((x * x) + (y * y)) <= d) {
count++;
}
x = 0;
y = 0;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
long int x, y, count = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt((x * x) + (y * y)) <= d) {
count++;
}
x = 0;
y = 0;
}
cout << count << endl;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 92 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define ll long long
#define add push_back
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define ll long long
#define add push_back
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 57, 15, 339, 51, 16, 31, 74, 0, 24], ["+", 15, 339, 51, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 57, 15, 339, 51, 16, 31, 74, 0, 25]] | 1 | 143 |
#include <bits/stdc++.h>
using namespace std;
double a, b, c, n, d;
int t;
main() {
int ans = 0;
cin >> t >> n;
while (t--) {
cin >> a >> b;
int r = sqrt(a * a + b * b);
if (r == n)
ans++;
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
double a, b, c, n, d;
int t;
main() {
int ans = 0;
cin >> t >> n;
while (t--) {
cin >> a >> b;
double r = sqrt(a * a + b * b);
if (r <= n)
ans++;
}
cout << ans;
} | [["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
int cnt = 0;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long int p, q;
cin >> p >> q;
for (int i = 0; i < p; ++i) {
long long int x, y;
cin >> x >> y;
long long int total = (x * x) + (y * y);
if (total <= q) {
... | #include <bits/stdc++.h>
using namespace std;
int cnt = 0;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long int p, q;
cin >> p >> q;
for (int i = 0; i < p; ++i) {
long long int x, y;
cin >> x >> y;
long long int total = (x * x) + (y * y);
if (total <= (q * q))... | [["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 119 |
#include <cstdio>
#include <iostream>
using namespace std;
int n, d, x, y, ans;
int main() {
cin >> n >> d;
while (n--) {
scanf("%d%d", &x, &y);
if (x * x + y * y <= d * d)
ans++;
}
cout << ans;
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
long long n, d, x, y, ans;
int main() {
cin >> n >> d;
while (n--) {
scanf("%lld%lld", &x, &y);
if (x * x + y * y <= d * d)
ans++;
}
cout << ans;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 75 |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int D = scan.nextInt();
int ans = 0;
for (int i = 0; i < N; i++) {
int x = scan.nextInt();
int y = scan.nextInt();
if ((x * x + ... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
long N = scan.nextInt();
long D = scan.nextInt();
int ans = 0;
for (int i = 0; i < N; i++) {
long x = scan.nextInt();
long y = scan.nextInt();
if ((x * ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 122 |
n, d = map(int, input().split())
A = []
for i in range(n):
A_i = list(map(int, input().split()))
A.append(A_i)
ans = 0
for j in A:
if A[0] ** 2 + A[1] ** 2 <= d **2 :
ans += 1
print(ans) | n, d = map(int, input().split())
A = []
for i in range(n):
A_i = list(map(int, input().split()))
A.append(A_i)
ans = 0
for j in A:
if (j[0] ** 2 + j[1] ** 2) <= d **2 :
ans += 1
print(ans)
| [["-", 15, 666, 0, 657, 31, 657, 31, 206, 51, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 23, 0, 24], ["+", 0, 23, 0, 657, 31, 657, 31, 206, 51, 22], ["-", 15, 666, 0, 657, 12, 657, 31, 206, 51, 22], ["+", 0, 23, 0, 657, 12, 657, 31, 206, 51, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 23, 0, 25]] | 5 | 85 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
#define INF 1e9
#define PI 3.141592653589793238
typedef long long ll;
int main() {
int n, d, x, y;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y)... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
#define INF 1e9
#define PI 3.141592653589793238
typedef long long ll;
int main() {
ll n, d, x, y;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d *... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 98 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <stack>
#include <tuple>
#include <vector>
#define _LIBCPP_DEBUG 0
using namespace std;
int main(void) {
int n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i+... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <stack>
#include <tuple>
#include <vector>
#define _LIBCPP_DEBUG 0
using namespace std;
int main(void) {
long long n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i <... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
long long list[N][2];
for (int i = 0; i < N; i++)
cin >> list[i][0] >> list[i][1];
int res = 0;
long long dis = 0;
for (int i = 0; i < N; i++) {
dis = list[i][0] * list[i][0] + list[i][1] * list[i][1];
// ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
long long D;
cin >> N >> D;
long long list[N][2];
for (int i = 0; i < N; i++)
cin >> list[i][0] >> list[i][1];
int res = 0;
long long dis = 0;
for (int i = 0; i < N; i++) {
dis = list[i][0] * list[i][0] + list[i][1] * list[i][... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
while (n--) {
long long int x, y;
cin >> x >> y;
long long int dist = x * x + y * y;
if (dist <= d * d)
ans++;
}
cout << ans << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
while (n--) {
long long int x, y;
cin >> x >> y;
long long int dist = x * x + y * y;
if (dist <= d * 1LL * d)
ans++;
}
cout << ans << "\n";
} | [["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 79 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
float n, d, c = 0;
cin >> n >> d;
while (n--) {
float x, y;
cin >> x >> y;
x = abs(x);
y = abs(y);
float dis = pow(x, 2) + pow(y, 2);
dis = pow(dis, 0.5);
... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
double n, d, c = 0;
cin >> n >> d;
while (n--) {
double x, y;
cin >> x >> y;
x = abs(x);
y = abs(y);
double dis = pow(x, 2) + pow(y, 2);
dis = pow(dis, 0.5)... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
long int c[a], d[a];
int counter = 0;
for (int i = 0; i < a; i++) {
cin >> c[i] >> d[i];
if (c[i] * c[i] + d[i] * d[i] <= b * b)
counter++;
}
cout << counter << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long int a, b;
cin >> a >> b;
long int c[a], d[a];
int counter = 0;
for (int i = 0; i < a; i++) {
cin >> c[i] >> d[i];
if (c[i] * c[i] + d[i] * d[i] <= b * b)
counter++;
}
cout << counter << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 103 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repo(i, n) for (int i = 1; i <= n; i++)
#define INF 1001001001
#define INFll 100100100100100
// debug用
#define PrintVec(x) \
for (auto elementPrintVec : x) { ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repo(i, n) for (int i = 1; i <= n; i++)
#define INF 1001001001
#define INFll 100100100100100
// debug用
#define PrintVec(x) \
for (auto elementPrintVec : x) { ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 147 |
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
#define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define square(x) pow(x, 2.0)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define max_queue(x) priority_queue<x>
#define min_queue... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
#define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define square(x) pow(x, 2.0)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define max_queue(x) priority_queue<x>
#define min_queue... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 278 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int counts = 0;
for (int i = 0; i < N; i++) {
long X = sc.nextLong();
long Y = sc.nextLong();
long A = X * X + Y * Y;
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long N = sc.nextLong();
long D = sc.nextLong();
int counts = 0;
for (int i = 0; i < N; i++) {
long X = sc.nextLong();
long Y = sc.nextLong();
long A = X * X + Y *... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]] | 3 | 125 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, c = 0, a, b;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (a * a + b * b <= d * d)
c++;
}
cout << c;
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, c = 0, a, b;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (a * a + b * b <= d * d)
c++;
}
cout << c;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 74 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n, k, a[200005], b[200005];
int ans = 0;
cin >> n >> k;
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
if (a[i] * a[i] + b[i] * b[i] <= k * k) {
ans++;
}
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
ll k, a[200005], b[200005];
int ans = 0;
cin >> n >> k;
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
if (a[i] * a[i] + b[i] * b[i] <= k * k) {
ans++;
}
}
cout << ans << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 112 |
#include <stdio.h>
int main(void) {
int i, N, ans = 0;
double D;
scanf("%d %d", &N, &D);
double X[N], Y[N];
for (i = 0; i < N; i++) {
scanf("%lf %lf", &X[i], &Y[i]);
}
for (i = 0; i < N; i++) {
if (D * D >= X[i] * X[i] + Y[i] * Y[i]) {
ans++;
}
}
printf("%d", ans);
return 0;
... | #include <stdio.h>
int main(void) {
int i, N, ans = 0;
double D;
scanf("%d %lf", &N, &D);
double X[N], Y[N];
for (i = 0; i < N; i++) {
scanf("%lf %lf", &X[i], &Y[i]);
}
for (i = 0; i < N; i++) {
if (D * D >= X[i] * X[i] + Y[i] * Y[i]) {
ans++;
}
}
printf("%d", ans);
return 0;... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 137 |
import math
n,d = map(int,input().split())
r = 0
d_ = d**2
for i in n:
a,b = map(int,input().split())
if d_ >= a**2 + b**2:
r += 1
print(r) | import math
n,d = map(int,input().split())
r = 0
d_ = d**2
for i in range(n):
a,b = map(int,input().split())
if d_ >= a**2 + b**2:
r += 1
print(r) | [["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
int n, d, ans = 0;
cin >> n >> d;
int x[n], y[n];
rep(i, n) cin >> x[i] >> y[i];
rep(i, n) {
if (x[i] * x[i] + y[i] * y[i] <= d * d)
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void) {
long n, d, ans = 0;
cin >> n >> d;
long x[n], y[n];
rep(i, n) cin >> x[i] >> y[i];
rep(i, n) {
if (x[i] * x[i] + y[i] * y[i] <= d * d)
ans++;
}
cout << ans << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 109 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt(), D = sc.nextInt(), c = 0;
for (int i = 0; i < N; i++) {
long X = sc.nextInt(), Y = sc.nextInt();
if (Math.sqrt(X * X + Y * Y) <= D * D) {
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt(), D = sc.nextInt(), c = 0;
for (int i = 0; i < N; i++) {
long X = sc.nextInt(), Y = sc.nextInt();
if (Math.sqrt(X * X + Y * Y) <= D) {
c++;
... | [["-", 36, 36, 0, 493, 0, 454, 0, 522, 141, 22], ["+", 36, 36, 0, 493, 0, 454, 0, 525, 0, 48], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 48]] | 3 | 122 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d;
cin >> n >> d;
int ans = 0;
d = d * d;
for (int i = 0; i < n; i++) {
long long int a, b;
cin >> a >> b;
a = a * a;
b = b * b;
long long int temp = (a + b);
if (temp == d)
ans++;
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d;
cin >> n >> d;
int ans = 0;
d = d * d;
for (int i = 0; i < n; i++) {
long long int a, b;
cin >> a >> b;
a = a * a;
b = b * b;
long long int temp = (a + b);
if (temp <= d)
ans++;
}
cout << ans;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 101 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
int x, y;
cin >> x >> y;
ll dfo = x * x + y * y;
if (dfo <= d * d)
++ans;
}
cout <<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
ll x, y;
cin >> x >> y;
ll dfo = x * x + y * y;
if (dfo <= d * d)
++ans;
}
cout << ans << "\n";
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]] | 1 | 104 |
n,d = map(int, input().split())
z = [list(map(int, input().split())) for _ in range(n)]
ans = 0
for i in z:
distance = i[0]*i[0] + i[1]*i[1]
if distance <= d**2:
ans += 1
print(i, distance)
print(ans) | n,d = map(int, input().split())
z = [list(map(int, input().split())) for _ in range(n)]
ans = 0
for i in z:
distance = i[0]*i[0] + i[1]*i[1]
if distance <= d**2:
ans += 1
print(ans)
| [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 91 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, X, Y;
cin >> N >> D;
int ans = 0;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
if (X * X + Y * Y <= D * D) {
ans++;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, D, X, Y;
cin >> N >> D;
int ans = 0;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
if (X * X + Y * Y <= D * D) {
ans++;
}
}
cout << ans << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
int n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
count++;
// cout<<ans<<"\n" ;
}
cout << count;
}
int main() {
int y;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
ll n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
ll x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
count++;
// cout<<ans<<"\n" ;
}
cout << count;
}
int main() {
int y;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]] | 1 | 107 |
import math
count=0
n,d=map(int,input().split())
for _ in range(n):
x,y=map(int,input().split())
if x**2+y**2<=25:
count+=1
print(count) | import math
count=0
n,d=map(int,input().split())
for _ in range(n):
x,y=map(int,input().split())
if x**2+y**2<=d**2:
count+=1
print(count) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 63 |
#include <bits/stdc++.h>
using namespace std;
#define bug(x) cerr << #x << " = " << x << '\n'
#define ll long long
#define maxn
int main() {
// freopen(".inp","r",stdin);
ll n, d;
cin >> n >> d;
int cnt = 0;
for (int i = 1; i <= n; ++i) {
int x, y;
cin >> x >> y;
ll p = x * x + y * y;
if (... | #include <bits/stdc++.h>
using namespace std;
#define bug(x) cerr << #x << " = " << x << '\n'
#define ll long long
#define maxn
int main() {
// freopen(".inp","r",stdin);
ll n, d;
cin >> n >> d;
int cnt = 0;
for (int i = 1; i <= n; ++i) {
ll x, y;
cin >> x >> y;
ll p = x * x + y * y;
if (p... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]] | 1 | 93 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int n, d;
cin >> n >> d;
int x, y, cnt = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
cnt++;
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int n;
ll d;
cin >> n >> d;
ll x, y;
int cnt = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
int N, D;
cin >> N >> D;
vector<int> x(N);
vector<int> y(N);
for (int i = 0; i < N; i++) {
cin >> x.at(i) >> y.at(i);
}
int count =... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
int main() {
int N, D;
cin >> N >> D;
vector<long long> x(N);
vector<long long> y(N);
for (int i = 0; i < N; i++) {
cin >> x.at(i) >> y.at(i);
}
... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
int count = 0;
cin >> N >> D;
int x, y, d;
for (int i = 0; i < N; i++) {
cin >> x >> y;
d = pow(x, 2) + pow(y, 2);
if (d <= pow(D, 2))
count++;
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
int count = 0;
cin >> N >> D;
int x, y;
long long d;
for (int i = 0; i < N; i++) {
cin >> x >> y;
d = pow(x, 2) + pow(y, 2);
if (d <= pow(D, 2))
count++;
}
cout << count << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, e = 0;
cin >> a >> b;
vector<int> c(a), d(a);
for (int i = 0; i < a; i++) {
cin >> c.at(i) >> d.at(i);
}
b = b * b;
for (int i = 0; i < a; i++) {
if ((c.at(i) * c.at(i) + d.at(i) * d.at(i)) <= b) {
e++;
}
}
cout <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, e = 0;
cin >> a >> b;
vector<long long> c(a), d(a);
for (int i = 0; i < a; i++) {
cin >> c.at(i) >> d.at(i);
}
b = b * b;
for (int i = 0; i < a; i++) {
if ((c.at(i) * c.at(i) + d.at(i) * d.at(i)) <= b) {
e++;
}
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 140 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, X, Y;
cin >> N >> D;
int count = 0;
int Z;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
Z = sqrt(pow(X, 2) + pow(Y, 2));
if (Z <= D) {
count++;
}
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, X, Y;
cin >> N >> D;
int count = 0;
double Z;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
Z = sqrt(pow(X, 2.0) + pow(Y, 2.0));
if (Z <= D) {
count++;
}
}
cout << count << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 3, 4, 0, 16, 31, 2, 3, 4, 0, 13], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 13], ["-", 3, 4, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 13]] | 1 | 93 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
int x, y = 0;
rep(i, n) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
long long n, d;
cin >> n >> d;
int ans = 0;
long long x, y = 0;
rep(i, n) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << en... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 87 |
#include "bits/stdc++.h"
using namespace std;
////////////// Prewritten code follows. Look down for solution. ////////////////
#define x first
#define y second
#define LEN(x) ((int)(x).size())
#define ALL(x) x.begin(), x.end()
using ll = long long;
using llu = long long unsigned;
using ld = long double;
using pii = pa... | #include "bits/stdc++.h"
using namespace std;
////////////// Prewritten code follows. Look down for solution. ////////////////
#define x first
#define y second
#define LEN(x) ((int)(x).size())
#define ALL(x) x.begin(), x.end()
using ll = long long;
using llu = long long unsigned;
using ld = long double;
using pii = pa... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 264 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.