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 |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
int n, d;
cin >> n >> d;
double x, y;
int c = 0;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d) {
++c;
}
}
cout << c << endl;
return 0;
}... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
ll n, d;
cin >> n >> d;
double x, y;
int c = 0;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d) {
++c;
}
}
cout << c << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 100 |
#include <iostream>
using namespace std;
int main() {
long long n, d, x, y, i, c = 0;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y >= d * d)
c++;
}
cout << c;
}
| #include <iostream>
using namespace std;
int main() {
long long n, d, i, x, y, c = 0;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
c++;
}
cout << c;
}
| [["+", 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, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 76 |
#include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int main() {
I... | #include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int main() {
I... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 80 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int n = sc.nextInt();
int count = 0;
for (int i = 0; i < x; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
if (Math.sqrt((a * a) + (b *... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
long n = sc.nextInt();
int count = 0;
for (int i = 0; i < x; i++) {
long a = sc.nextLong();
long b = sc.nextLong();
if (Math.sqrt((a * a) +... | [["-", 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], ["-", 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;
int count = 0;
cin >> N >> D;
vector<vector<int>> position(N, vector<int>(N));
for (int i = 0; i < N; i++) {
cin >> position.at(i).at(0) >> position.at(i).at(1);
if (sqrt(pow(position.at(i).at(0), 2) + pow(position.at(i).at(1), 2)... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
int count = 0;
cin >> N >> D;
vector<vector<int>> position(N, vector<int>(2));
for (int i = 0; i < N; i++) {
cin >> position.at(i).at(0) >> position.at(i).at(1);
if (sqrt(pow(position.at(i).at(0), 2) + pow(position.at(i).at(1), 2)... | [["-", 0, 56, 49, 185, 54, 55, 0, 56, 39, 78], ["+", 49, 50, 51, 4, 0, 2, 3, 4, 0, 13]] | 1 | 140 |
#include <bits/stdc++.h>
#define lli long long int
using namespace std;
int main() {
int n, d, t = 0;
cin >> n >> d;
int x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
t++;
}
cout << t;
return 0;
} | #include <bits/stdc++.h>
#define lli long long int
using namespace std;
int main() {
lli n, d, t = 0;
cin >> n >> d;
lli x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(abs(x * x + y * y)) <= d)
t++;
// cout<<sqrt(abs(x*x+y*y))<<endl;
}
cout << t;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 51, 16, 31, 2, 3, 4, 0, 2, 63, 22], ["+", 31, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 31, 2, 3, 4, 0, 2, 3, 4, 0, 25]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n, d;
scanf("%d %d", &n, &d);
int ans = 0;
for (int i = 0; i < n; ++i) {
ll x, y;
scanf("%lld %lld", &x, &y);
if (x * x + y * y <= d * d)
++ans;
}
printf("%d\n", ans);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n, d;
scanf("%d %d", &n, &d);
int ans = 0;
for (int i = 0; i < n; ++i) {
ll x, y;
scanf("%lld %lld", &x, &y);
if (x * x + y * y <= (ll)d * d)
++ans;
}
printf("%d\n", ans);
return 0;
}
| [["+", 15, 339, 51, 16, 12, 16, 31, 74, 0, 24], ["+", 51, 16, 12, 16, 31, 74, 39, 77, 39, 78], ["+", 15, 339, 51, 16, 12, 16, 31, 74, 0, 25]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
int main() {
int n, d;
cin >> n >> d;
ll dd = d * d;
ll cnt = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
ll xx, yy;
xx = x * x;
yy = y * y;
if (xx + yy <= dd) {
... | #include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
int main() {
ll n, d;
cin >> n >> d;
ll dd = d * d;
ll cnt = 0;
for (ll i = 0; i < n; i++) {
ll x, y;
cin >> x >> y;
ll xx, yy;
xx = x * x;
yy = y * y;
if (xx + yy <= dd) {
cnt... | [["-", 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 | 111 |
#include <bits/stdc++.h>
using namespace std;
#define fRead(x) freopen(x, "r", stdin)
#define fWrite(x) freopen(x, "w", stdout)
#define LL long long
#define ULL unsigned long long
#define ff first
#define ss second
#define pb push_back
#define PI acos(-1.0)
#define mk make_pair
#define pii pair<int, int>
#define pll... | #include <bits/stdc++.h>
using namespace std;
#define fRead(x) freopen(x, "r", stdin)
#define fWrite(x) freopen(x, "w", stdout)
#define LL long long
#define ULL unsigned long long
#define ff first
#define ss second
#define pb push_back
#define PI acos(-1.0)
#define mk make_pair
#define pii pair<int, int>
#define pll... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78]] | 1 | 439 |
import math
n,d=input().split(" ")
n=int(n)
d=int(d)
cnt=0
for i in range(0,n):
x,y=input().split(" ")
x=int(x)
y=int(y)
dist=math.sqrt(x*x + y*y)
if(dist>=d):
cnt=cnt+1
print(cnt) | import math
n,d=input().split(" ")
n=int(n)
d=int(d)
cnt=0
for i in range(0,n):
x,y=input().split(" ")
x=int(x)
y=int(y)
dist=math.sqrt(x*x + y*y)
if(dist<=d):
cnt=cnt+1
print(cnt) | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 97 |
n, d = map(int, input().split())
xy = [map(int, input().split()) for _ in range(5)]
x, y = [list(i) for i in zip(*xy)]
count = 0
for i, j in zip(x, y):
if i*i + j*j <= d*d:
count += 1
print(count) | n, d = map(int, input().split())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
count = 0
for i, j in zip(x, y):
if i*i + j*j <= d*d:
count += 1
print(count) | [["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 22]] | 5 | 92 |
#include <iostream>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
long long x, y, val;
cin >> x >> y;
val = x * x + y * y;
if (val <= d * d)
ans++;
}
cout << ans;
} | #include <iostream>
using namespace std;
int main() {
long long n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
long long x, y, val;
cin >> x >> y;
val = x * x + y * y;
if (val <= d * d)
ans++;
}
cout << ans;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 82 |
n, d=map(int,input().split())
c = 0
for i in range(n):
s = [int(i) for i in input().split()]
if ((s[0]**2) + s[1]**2)**(1/2) >= d:
c += 1
print(c) | n, d=map(int,input().split())
c = 0
for i in range(n):
s = [int(j) for j in input().split()]
if ((s[0]**2) + (s[1]**2))**(1/2) <= d:
c += 1
print(c) | [["-", 0, 662, 12, 658, 8, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 662, 12, 658, 0, 659, 31, 22], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 31, 22], ["+", 0, 657, 31, 23, 0, 657, 12, 23, 0, 24], ["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20],... | 5 | 79 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll i, x, y, n, d;
int count = 0;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x >> y;
ll ans = sqrt((x * x) + (y * y));
if (ans < d)
count++;
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long double ld;
int main() {
ld i, x, y, n, d;
int count = 0;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x >> y;
ld ans = sqrt((x * x) + (y * y));
if (ans <= d)
count++;
}
cout << count;
return 0;
} | [["-", 36, 36, 0, 30, 0, 134, 39, 86, 0, 96], ["-", 36, 36, 36, 36, 0, 30, 0, 134, 49, 78], ["+", 36, 36, 0, 30, 0, 134, 39, 86, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 134, 49, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["+", 8, 9, ... | 1 | 94 |
#include "iostream"
using namespace std;
int main() {
int n;
int d;
cin >> n >> d;
long long x[n];
long long y[n];
long long cnt = 0;
for (int i = 0; i < n; i++) {
cin >> x[i] >> y[i];
if ((x[i] * x[i] + y[i] * y[i]) <= d * d)
cnt++;
}
cout << cnt;
} | #include "iostream"
using namespace std;
int main() {
long n;
long d;
cin >> n >> d;
long long x[n];
long long y[n];
long long cnt = 0;
for (int i = 0; i < n; i++) {
cin >> x[i] >> y[i];
if ((x[i] * x[i] + y[i] * y[i]) <= d * d)
cnt++;
}
cout << cnt;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 109 |
N,D=map(int,input().split())
l=[]
l1=[]
count=0
for i in range(N):
x,y=map(int,input().split())
l.append(x)
l1.append(y)
for i in range(N):
if (l[i]**2 +l1**2)**0.5 <=D:
count+=1
print(count)
| N,D=map(int,input().split())
l=[]
l1=[]
count=0
for i in range(N):
x,y=map(int,input().split())
l.append(x)
l1.append(y)
for i in range(N):
if (l[i]**2 +l1[i]**2)**0.5 <=D:
count+=1
print(count)
| [["+", 31, 23, 0, 657, 12, 657, 31, 206, 0, 70], ["+", 31, 23, 0, 657, 12, 657, 31, 206, 206, 22], ["+", 31, 23, 0, 657, 12, 657, 31, 206, 0, 73]] | 5 | 96 |
import math
n,d=map(int,input().split())
count=0
for i in range(n):
x,y=map(int,input().split())
p=math.ceil(math.pow(x,2)+math.pow(y,2))
r=math.ceil(math.sqrt(p))
if(r==d):
count+=1
print(count) | import math
n,d=map(int,input().split())
count=0
for i in range(n):
x,y=map(int,input().split())
p=math.ceil(math.pow(x,2)+math.pow(y,2))
r=math.ceil(math.sqrt(p))
if(r<=d):
count+=1
print(count)
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 96 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int x, y, count = 0;
double num;
for (int i = 0; i < n; i++) {
cin >> x >> y;
num = sqrt(x * x + y * y);
if (num <= d) {
count++;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int64_t x, y, count = 0;
double_t num;
for (int i = 0; i < n; i++) {
cin >> x >> y;
num = sqrt(x * x + y * y);
if (num <= 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], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 89 |
N,D = map(int,input().split())
l = []
for i in range (N):
x,y = map(int,input().split())
l.append(x*x+y*y)
ans = 0
for i in range(N):
if l[i] < D*D:
ans += 1
print(cnt) | N,D = map(int,input().split())
l = []
for i in range (N):
x,y = map(int,input().split())
l.append(x*x+y*y)
ans = 0
for i in range(N):
if l[i] <= D*D:
ans += 1
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 84 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
int t, d;
cin >> t >> d;
int dem = 0;
while (t--) {
int x, y;
cin >> x >> y;
int k = sqrt(x * x + y * y);
if (k <= d)
dem++;
}
cout << dem;
return 0;
}
| #include <bits/stdc++.h>
#define int double
using namespace std;
signed main() {
int t, d;
cin >> t >> d;
int dem = 0;
while (t--) {
int x, y;
cin >> x >> y;
int k = sqrt(x * x + y * y);
if (k <= d)
dem++;
}
cout << dem;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, ans = 0;
int x, y;
cin >> N >> D;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= D)
ans++;
// cout<< sqrt(x*x+y*y)<<endl;
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, ans = 0;
long long x, y;
cin >> N >> D;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= D)
ans++;
// cout<< sqrt(x*x+y*y)<<endl;
}
cout << ans;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 77 |
import math
n, d = map(int, input().split())
cnt = 0
for i in range(n):
x, y = map(int, input().split())
dist = math.sqrt(x**2 + y**2)
if dist <= D:
cnt += 1
print(cnt) | import math
n, d = map(int, input().split())
cnt = 0
for i in range(n):
x, y = map(int, input().split())
dist = math.sqrt(x**2 + y**2)
if dist <= d:
cnt += 1
print(cnt)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, X, Y, a, K, S, d;
cin >> N >> D;
d = D * D;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
K = X * X;
S = Y * Y;
if ((K + S) == d) {
a++;
}
}
cout << a << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double N, D, X, Y, a, K, S, d;
cin >> N >> D;
a = 0;
d = D * D;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
K = X * X;
S = Y * Y;
if ((K + S) <= d) {
a++;
}
}
cout << a << endl;
}
| [["-", 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, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339,... | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define x first
#define y second
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// assert(freopen("input.txt","r",stdin));
// assert(freopen("output.txt","w",stdout));
int n, d;
cin >> n >> d;
int... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define x first
#define y second
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// assert(freopen("input.txt","r",stdin));
// assert(freopen("output.txt","w",stdout));
ll n, d;
cin >> n >> d;
int ... | [["-", 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 | 115 |
n,d = map(int,input().split(" "))
d *= d
c = 0
for i in range(n):
a,b =map(int,input().split(" "))
if(a**2 + b**2 == d):
c += 1
print(c)
| n,d = map(int,input().split(" "))
d *= d
c = 0
for i in range(n):
a,b =map(int,input().split(" "))
if(a**2 + b**2 <= d):
c += 1
print(c)
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 72 |
n,d=map(int,input().split())
for i in range(n):
a,b=map(int,input().split())
if a*a+b*b<=d*d:ans+=1
print(ans) | n,d=map(int,input().split())
ans=0
for i in range(n):
a,b=map(int,input().split())
if a*a+b*b<=d*d:ans+=1
print(ans) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 60 |
#include <iostream>
using namespace std;
int main() {
long long n, d, a, b;
int cnt = 0;
cin >> n >> d;
d *= d;
while (n--) {
cin >> a >> b;
if (d <= (a * a + b * b))
++cnt;
}
cout << cnt;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long n, d, a, b;
int cnt = 0;
cin >> n >> d;
d *= d;
while (n--) {
cin >> a >> b;
if (d >= (a * a + b * b))
++cnt;
}
cout << cnt;
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 74 |
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 res = 0;
while (n-- > 0) {
int x = sc.nextInt();
int y = sc.nextInt();
// int res =0;
double dis = Math.sqrt... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long d = sc.nextInt();
long res = 0;
while (n-- > 0) {
long x = sc.nextInt();
long y = sc.nextInt();
// int res =0;
double dis = Math... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 52, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 52, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 135 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
int N, D, i;
int *x, *y;
double *distance;
int count = 0;
scanf("%d%d", &N, &D);
x = malloc(sizeof(int *) * N);
y = malloc(sizeof(int *) * N);
distance = malloc(sizeof(double *) * N);
for (i = 0; i < N; i++) {
scanf("%d%d", ... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
int N, D, i;
double *x, *y;
double *distance;
int count = 0;
scanf("%d%d", &N, &D);
x = malloc(sizeof(double *) * N);
y = malloc(sizeof(double *) * N);
distance = malloc(sizeof(double *) * N);
for (i = 0; i < N; i++) {
scanf... | [["-", 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, 105, 39, 77, 39, 40], ["+", 3, 4, 0, 16, 31, 105, 39, 77, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 209 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
int main() {
ll N, D, cnt = 0;
cin >> N >> D;
r... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
int main() {
ll N, D, cnt = 0;
cin >> N >> D;
r... | [["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 115 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, cnt = 0;
double q;
cin >> n >> q;
for (int i = 1; i <= n; i++) {
double x, y;
cin >> x >> y;
double dis = sqrt(x * x + y * y);
if (dis >= q)
cnt++;
}
cout << cnt;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, cnt = 0;
double q;
cin >> n >> q;
for (int i = 1; i <= n; i++) {
double x, y;
cin >> x >> y;
double dis = sqrt(x * x + y * y);
if (dis <= q)
cnt++;
}
cout << cnt;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 87 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n, d, c = 0;
cin >> n;
cin >> d;
int x;
int y;
rep(i, n) {
cin >> x;
cin >> y;
if (d >= sqrt(x * x + y * y)) {
c++;
}
}
cout << c << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n, d, c = 0;
cin >> n;
cin >> d;
long long x;
long long y;
rep(i, n) {
cin >> x;
cin >> y;
if (d >= sqrt(x * x + y * y)) {
c++;
}
}
cout << c << endl;
return 0;... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, cnt = 0;
cin >> n >> d;
while (n--) {
double x, y;
cin >> x >> y;
double result = sqrt(pow(x, 2) + pow(y, 2));
if (result <= d) {
cnt++;
}
cout << cnt << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, cnt = 0;
cin >> n >> d;
while (n--) {
double x, y;
cin >> x >> y;
double result = sqrt(pow(x, 2) + pow(y, 2));
if (result <= d) {
cnt++;
}
}
cout << cnt << endl;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]] | 1 | 85 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int D = sc.nextInt();
int X, Y, D1, F = 0;
for (int i = 0; i < N; i++) {
X = sc.nextInt();
Y = sc.nextInt();
D1 = X * X + Y * Y;
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long N = sc.nextInt();
long D = sc.nextInt();
long X, Y, D1, F = 0;
for (long i = 0; i < N; i++) {
X = sc.nextInt();
Y = sc.nextInt();
D1 = X * X + Y * Y;... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 7, 502, 503, 39, 506, 0, 507], ["+", 8, 196, 0, 7, 502, 503, 39, 506, 0, 96]] | 3 | 130 |
import math
n, d = input().split()
count = 0
for idx in range(int(n)):
x, y = input().split()
x, y = int(x), int(y)
if math.sqrt(math.pow(int(x), 2) + math.pow(int(y), 2)) < (int(d) + 1):
count += 1
print(count) | import math
n, d = input().split()
count = 0
for idx in range(int(n)):
x, y = input().split()
x, y = int(x), int(y)
if math.sqrt(math.pow(int(x), 2) + math.pow(int(y), 2)) <= int(d):
count += 1
print(count) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["-", 8, 196, 0, 57, 15, 666, 0, 23, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 0, 23, 0, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 57, 15, 666, 0, 23, 0, 657, 17, 72], ["-", 0, 57, 15, 666, 0, 23, 0, 657, 12, 612]] | 5 | 97 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, u) for (int i = 0; i < u; i++)
using ll = long long;
using ull = unsigned long long;
int main() {
int n, d, ans = 0;
string x, y;
cin >> n >> d;
rep(i, n) {
cin >> x >> y;
if (x[0] == '-')
x = x.substr(1, x.size());
if (y[0] == '-... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, u) for (int i = 0; i < u; i++)
using ll = long long;
using ull = unsigned long long;
int main() {
int n, d, ans = 0;
string x, y;
cin >> n >> d;
rep(i, n) {
cin >> x >> y;
if (x[0] == '-')
x = x.substr(1, x.size());
if (y[0] == '-... | [["-", 12, 2, 3, 4, 0, 2, 63, 118, 28, 22], ["+", 12, 2, 3, 4, 0, 2, 63, 118, 28, 22]] | 1 | 158 |
import math
num, dist = map(int, input().split())
count = 0
for i in range(0,num):
x, y = map(int, input().split())
distance = math.sqrt(x**2 + y**2)
if distance >= dist:
count += 1
print(count) | import math
num, dist = map(int, input().split())
count = 0
for i in range(0,num):
x, y = map(int, input().split())
distance = math.sqrt(x**2 + y**2)
if distance <= dist:
count += 1
print(count)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 73 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int cnt = 0;
int n, d;
cin >> n >> d;
int a[n], b[n];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
int c = (a[i] * a[i]) + (b[i] * b[i]);
if (sqrt(c) <= d) {
cnt++;
}
}
cout << cnt << endl;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
int cnt = 0;
int n, d;
cin >> n >> d;
double a[n], b[n];
for (int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
double c = (a[i] * a[i]) + (b[i] * b[i]);
if (sqrt(c) <= d) {
cnt++;
}
}
cout << cnt << endl;
return 0... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
long long n, d;
cin >> n >> d;
d = d * d;
int res = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (1ll * x * x + y * y <= d)
res++;
}
cout << res;
return 0;... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
long long n, d;
cin >> n >> d;
d = d * d;
// cout<<d;
int res = 0;
for (int i = 0; i < n; i++) {
long long x, y;
cin >> x >> y;
if (x * x + y * y <= d)
res++;
}
cout << re... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 51, 16, 31, 16, 31, 16, 31, 16, 31, 13], ["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 48]] | 1 | 107 |
#include <bits/stdc++.h>
#define nl "\n"
#define ll long long
#define pb push_back
#define pf push_front
#define np next_permutation
#define pp prev_permutation
#define sqr(x) ((x) * (x))
#define pi acos(-1)
#define setprecision(x) fixed << setprecision((int)(x))
#define mem1(x) memset(x, 0, sizeof(x))
#define mem2(x) ... | #include <bits/stdc++.h>
#define nl "\n"
#define ll long long
#define pb push_back
#define pf push_front
#define np next_permutation
#define pp prev_permutation
#define sqr(x) ((x) * (x))
#define pi acos(-1)
#define setprecision(x) fixed << setprecision((int)(x))
#define mem1(x) memset(x, 0, sizeof(x))
#define mem2(x) ... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 193 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int count = 0;
while (n--) {
int a, b;
cin >> a >> b;
double ans = sqrt((a * a) + (b * b));
if (ans <= d) {
count++;
}
}
cout << count;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int count = 0;
while (n--) {
long long int a, b;
cin >> a >> b;
double ans = sqrt((a * a) + (b * b));
if (ans <= d) {
count++;
}
}
cout << count;
} | [["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 79 |
// package beginner174;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class Main {
private static PrintWriter out;
public static void solve() {
In in = new In();... | // package beginner174;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class Main {
private static PrintWriter out;
public static void solve() {
In in = new In();... | [["-", 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], ["-", 8, 196, 0, 503, 39, 224, 468, 506, 0, 507], ["+", 8, 196, 0, 503, 39, 224, 468, 506, 0, 96], ["-", 8, 196, 0, 514, 39,... | 3 | 1,383 |
count=0
N,D=map(int,input().split())
for i in range(N):
X,Y=map(int,input().split())
if D**2>X**2+Y**2:
count+=1
print(count) | count=0
N,D=map(int,input().split())
for i in range(N):
X,Y=map(int,input().split())
if D**2>=X**2+Y**2:
count+=1
print(count) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 63 |
#include <bits/stdc++.h>
#define int long long
#define REP(i, a, n) for (int i = a; i < (n); i++)
#define RE return
#define FILL(a, b) memset(a, b, sizeof(a))
#define SO(a) sort(all(a))
#define pb push_back
#define sz(a) a.size()
#define V vector
#define ld long double
#define viit(a) vector<int>::iterator a
#define IT... | #include <bits/stdc++.h>
#define int long long
#define REP(i, a, n) for (int i = a; i < (n); i++)
#define RE return
#define FILL(a, b) memset(a, b, sizeof(a))
#define SO(a) sort(all(a))
#define pb push_back
#define sz(a) a.size()
#define V vector
#define ld long double
#define viit(a) vector<int>::iterator a
#define IT... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 168 |
#include <bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(), A.end()
#define RALL(A) A.rbegin(), A.rend()
typedef long long LL;
typedef pair<LL, LL> P;
template <class T> inline bool chmax(T &a, T b) {
if (... | #include <bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(), A.end()
#define RALL(A) A.rbegin(), A.rend()
typedef long long LL;
typedef pair<LL, LL> P;
template <class T> inline bool chmax(T &a, T b) {
if (... | [["-", 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 | 292 |
// JAI SRI KRISHNA.//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll n, i, j, m, c = 0, a, b;
cin >> n >> m;
for (i = 0; i < n; i++) {
cin >> a >> b;
double d = sqrt(a * a + b * b);
if (d >= m)
c++;
}
cout << c << endl;
}
| // JAI SRI KRISHNA.//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll n, i, j, m, c = 0, a, b;
cin >> n >> m;
for (i = 0; i < n; i++) {
cin >> a >> b;
double d = sqrt(a * a + b * b);
if (d <= m)
c++;
}
cout << c << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 89 |
#include <cmath>
#include <iostream>
#include <set>
int main() {
long long n, d, ans = 0;
std::cin >> n >> d;
int x, y;
for (int i = 0; i < n; ++i) {
std::cin >> x >> y;
if (std::sqrt(x * x + y * y) <= d)
++ans;
}
std::cout << ans << std::endl;
} | #include <cmath>
#include <iostream>
#include <set>
int main() {
long long n, d, ans = 0;
std::cin >> n >> d;
long long x, y;
for (int i = 0; i < n; ++i) {
std::cin >> x >> y;
if (std::sqrt(x * x + y * y) <= d)
++ans;
}
std::cout << ans << std::endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 89 |
import math
n, d = map(int, input().split())
p=[]
for i in range(n):
p.append(list(map(int, input().split())))
#print(p)
count=0
for i in range(n):
if math.sqrt(((p[i][0])**2 + (p[i][1])**2)) <= 0:
count+=1
print(count) | import math
n, d = map(int, input().split())
p=[]
for i in range(n):
p.append(list(map(int, input().split())))
#print(p)
count=0
for i in range(n):
if math.sqrt(((p[i][0])**2 + (p[i][1])**2)) <= d:
count+=1
print(count) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 103 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
long double d;
cin >> d;
int count = 0;
while (n--) {
int x, y;
cin >> x >> y;
long double c = sqrt(x * x + y * y);
if (c <= d)
count++;
}
cout << count <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
long long int n;
cin >> n;
long double d;
cin >> d;
long long count = 0;
while (n--) {
long long x, y;
cin >> x >> y;
long double c = sqrt(x * x + y * y);
if (c <= d)
count++;
... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, x, y;
cin >> n >> d;
d *= d;
int counter = 0;
while (n--) {
cin >> x >> y;
if (d <= x * x + y * y)
counter++;
}
cout << counter;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, x, y;
cin >> n >> d;
d *= d;
int counter = 0;
while (n--) {
cin >> x >> y;
if (d >= x * x + y * y)
counter++;
}
cout << counter;
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, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 71 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int[] x = new int[n];
int[] y = new int[n];
for (int i = 0; i < n; i++) {
x[i] = sc.nextInt();
y[i] = sc.nextI... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int[] x = new int[n];
int[] y = new int[n];
for (int i = 0; i < n; i++) {
x[i] = sc.nextInt();
y[i] = sc.nextI... | [["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 0, 1, 0, 11, 12, 74, 39, 506, 0, 96], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25]] | 3 | 195 |
import math
N,D = map(int, input().split())
count = 0
for i in range(N):
x,y = map(int, input().split())
result = (x**2) + (y**2)
final = math.sqrt(result)
if final >=D:
count += 1
print(count)
| import math
N,D = map(int, input().split())
count = 0
for i in range(N):
x,y = map(int, input().split())
result = abs(x**2) + abs(y**2)
final = math.sqrt(result)
if final <= float(D):
count += 1
print(count)
| [["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]... | 5 | 78 |
import math
n,d = map(int,input().split())
res = 0
for _ in range(n):
p,q = map(int,input().split())
if math.sqrt((p**2)+(q**2))<=d:
res += 1 | import math
n,d = map(int,input().split())
res = 0
for _ in range(n):
p,q = map(int,input().split())
if math.sqrt((p**2)+(q**2))<=d:
res += 1
print(res) | [["+", 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 | 68 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long long int d, n, c = 0;
scanf("%d %d", &n, &d);
for (int i = 0; i < n; i++) {
long long int x, y;
scanf("%d %d", &x, &y);
if ((x * x + y * y) <= d * d)
c++;
}
printf("%d", c);
}
| #include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long long int d, n, c = 0;
scanf("%lld %lld", &n, &d);
for (int i = 0; i < n; i++) {
long long int x, y;
scanf("%lld %lld", &x, &y);
if ((x * x + y * y) <= d * d)
c++;
}
printf("%d", c);
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 100 |
import math
N, D = map(int, input().split())
count = 0
for _ in range(N):
x, y = map(int, input().split())
xx = x ** 2
yy = y ** 2
ans = math.sqrt(xx + yy)
if ans >= D:
count += 1
print(count) | import math
N, D = map(int, input().split())
count = 0
for _ in range(N):
x, y = map(int, input().split())
xx = x ** 2
yy = y ** 2
ans = math.sqrt(xx + yy)
if ans <= 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]] | 5 | 77 |
import math
N,D = map(int, input().split())
kyori = 0
total = 0
for i in range(N):
X,Y = map(int, input().split())
kyori = math.sqrt(X**2 + Y**2)
if D > kyori:
total += 1
# 出力
print(total) | import math
N,D = map(int, input().split())
kyori = 0
total = 0
for i in range(N):
X,Y = map(int, input().split())
kyori = math.sqrt(X**2 + Y**2)
if D >= kyori:
total += 1
# 出力
print(total) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 75 |
import math
n,d=map(int,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):
if math.sqrt((x[i]*x[i])*(y[i]*y[i]))>=d:
count=count+1
print(count)
| import math
n,d=map(int,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):
a=math.sqrt((x[i]*x[i])+(y[i]*y[i]))
if d>=a:
count=count+1
print(count)
| [["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 15, 666, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0,... | 5 | 111 |
#include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ones(x) (ll) __builtin_popcount(x)
#define fs first
#define sc second
#define pb p... | #include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ones(x) (ll) __builtin_popcount(x)
#define fs first
#define sc second
#define pb p... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 232 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define N 200005
using ll = long long;
using namespace std;
int main() {
int x[N] = {}, y[N] = {};
int n;
double d;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x[i] >> y[i];
}
int counter(0);
for (int i = 0; i < n... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define N 200005
using ll = long long;
using namespace std;
int main() {
ll x[N] = {}, y[N] = {};
ll n;
double d;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x[i] >> y[i];
}
int counter(0);
for (int i = 0; i < n; ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 149 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define sort(v) sort(v.begin(), v.end())
#define pb push_back
/*
ll ar[1000000+9]={0};
void seiv() {
ll n=1000000,i,j;
ar[1]=1;
for(i=4;i<=n;i+=2)ar[i]=1;
for(i=3;i<=n;i+=2)
{ if(ar[i]==0)
{ for(j=i*i;j<=n;j+=i*2)ar[j]=1; }
}
}
*/
int main() {
ll ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define sort(v) sort(v.begin(), v.end())
#define pb push_back
/*
ll ar[1000000+9]={0};
void seiv() {
ll n=1000000,i,j;
ar[1]=1;
for(i=4;i<=n;i+=2)ar[i]=1;
for(i=3;i<=n;i+=2)
{ if(ar[i]==0)
{ for(j=i*i;j<=n;j+=i*2)ar[j]=1; }
}
}
*/
int main() {
ll ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rept(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define all(v) v.bigin(), v.end()
#define MAX(a, b) a = a > b ? a : b
#define MIN... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rept(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define all(v) v.bigin(), v.end()
#define MAX(a, b) a = a > b ? a : b
#define MIN... | [["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 197 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N = 0;
long long D = 0;
cin >> N >> D;
long long count = 0;
for (int i = 0; i < N; i++) {
long long x = 0;
long long y = 0;
cin >> x >> y;
long long d = sqrt(x * x + y * y);
if (d <= D)
count++;
}
cout << c... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N = 0;
long long D = 0;
cin >> N >> D;
long long count = 0;
for (int i = 0; i < N; i++) {
long long x = 0;
long long y = 0;
cin >> x >> y;
long double d = sqrt(x * x + y * y);
// cout << d << endl;
if (d <= D)
... | [["-", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 100 |
/*
NAME:
___ _ _ ___
/ __| /_\ /_\ | \
\__ \/ _ \ / _ \| |) |
|___/_/ \_\/_/ \_\___/
lang:
___ _ _
/ __)_| |_ _| |_
( (__(_ _)(_ _)
\___) |_| |_|
*/
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <comple... | /*
NAME:
___ _ _ ___
/ __| /_\ /_\ | \
\__ \/ _ \ / _ \| |) |
|___/_/ \_\/_/ \_\___/
lang:
___ _ _
/ __)_| |_ _| |_
( (__(_ _)(_ _)
\___) |_| |_|
*/
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <comple... | [["-", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 426 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, x, y, count = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
count++;
}
cout << count;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, x, y, count = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
count++;
}
cout << count;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 66 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
rep(i, n) {
vector<int> a(2);
rep(i, 2) cin >> a[i];
int distance = sqrt(pow(a[0], 2) + pow(a[1], 2));
if (distance <= d)
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
rep(i, n) {
vector<int> a(2);
rep(i, 2) cin >> a[i];
double distance = sqrt(pow(a[0], 2) + pow(a[1], 2));
if (distance <= d)
... | [["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 112 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, A, B;
B = 0;
cin >> N >> D;
vector<int> x(N);
vector<int> y(N);
for (int i = 0; i < N; i++) {
cin >> x[i] >> y[i];
A = x[i] * x[i] + y[i] * y[i];
if (A <= D * D)
B++;
}
cout << B << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
#define int long long
int N, D, A, B;
B = 0;
cin >> N >> D;
vector<int> x(N);
vector<int> y(N);
for (int i = 0; i < N; i++) {
cin >> x[i] >> y[i];
A = x[i] * x[i] + y[i] * y[i];
if (A <= D * D)
B++;
}
cout << B << endl;
} | [["+", 0, 30, 0, 14, 8, 9, 0, 58, 0, 148], ["+", 0, 30, 0, 14, 8, 9, 0, 58, 51, 59], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 116 |
#include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <string.h>
#include <vector>
constexpr long long INFLL = 1e18;
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n, d;
c... | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <string.h>
#include <vector>
constexpr long long INFLL = 1e18;
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
ll 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]] | 1 | 124 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, d;
cin >> n;
cin >> d;
int f = 0;
for (int i = 1; i <= n; i++) {
int x, y;
cin >> x;
cin >> y;
int t = sqrt(x * x + y * y);
if (t <= d) {
f = f + 1;
}
}
co... |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
double d;
cin >> n;
cin >> d;
int f = 0;
for (int i = 1; i <= n; i++) {
double x, y;
cin >> x;
cin >> y;
double t = sqrt(x * x + y * y);
if (t <= d) {
f = f + 1;... | [["-", 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], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 108 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
while (n--) {
int a, b;
cin >> a >> b;
if (sqrt((a * a) + (b * b)) <= d)
ans++;
}
cout << ans << "\n";
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
// freopen("inputf.txt","r",stdin);
// freopen("outputf.txt","w",stdout);
long long int n, d;
cin >> n >> d;
int ans = 0;
while (n--) {
long long int a, b;
cin >> a >> b;
if (sqrt((a * a) + (b * b)) <= d)
a... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 78 |
import math
n, d = map(int, input().split())
t = 0
for i in range(0,n-1):
alis = list(map(int, input().split()))
sss = math.sqrt(alis[0] ** 2 + alis[1] ** 2)
if d >= sss:
t += 1
print(t)
| import math
n, d = map(int, input().split())
t = 0
for i in range(0,n):
alis = list(map(int, input().split()))
sss = math.sqrt(alis[0] ** 2 + alis[1] ** 2)
if d >= sss:
t += 1
print(t)
| [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long c = 0;
while (n--) {
long long p, q;
cin >> p >> q;
if ((p * p) + (q * q) >= (d * d))
c++;
}
cout << c;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long c = 0;
while (n--) {
long long p, q;
cin >> p >> q;
if (((p * p) + (q * q)) <= (d * d))
c++;
}
cout << c;
return 0;
}
| [["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 79 |
n,d=map(int,input().split())
x=[0 for i in range(n)]
for i in range(n):
x[i]=list(map(int,input().split()))
a=0
for i in range(i):
if x[i][0]**2+x[i][1]**2<=d**2:
a+=1
print(a) | n,d=map(int,input().split())
x=[0 for i in range(n)]
for i in range(n):
x[i]=list(map(int,input().split()))
a=0
for i in range(n):
if x[i][0]**2+x[i][1]**2<=d**2:
a+=1
print(a) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 99 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int x, y;
int cnt = 0;
long long ok = pow(d, 2.0);
long long j;
for (int i = 0; i < n; i++) {
cin >> x >> y;
j = pow(x, 2.0) + pow(y, 2.0);
if (ok <= j)
cnt++;
}
cout << cnt << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int x, y;
int cnt = 0;
long long ok = pow(d, 2.0);
long long j;
for (int i = 0; i < n; i++) {
cin >> x >> y;
j = pow(x, 2.0) + pow(y, 2.0);
if (j <= ok)
cnt++;
}
cout << cnt << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 101 |
n,d = map(int,input().split())
sum=0
for i in range(n):
x,y = map(int,input().split())
if(x*x+y*y<=d):
sum+=1
print(sum)
| n,d = map(int,input().split())
sum=0
for i in range(n):
x,y = map(int,input().split())
if((x*x+y*y)<=d*d):
sum+=1
print(sum)
| [["+", 0, 57, 15, 23, 0, 666, 0, 23, 0, 24], ["+", 0, 57, 15, 23, 0, 666, 0, 23, 0, 25], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 17, 48]] | 5 | 63 |
<?php
fscanf(STDIN,"%d %d",$n,$d);
$result=0;
for($i=0;$i<$n;$i++){
fscanf(STDIN,"%d %d",$x,$y);
$D = sqrt($x*$x+$y*$y);
if($D>=$d){
$result++;
}
}
echo $result."\n";
| <?php
fscanf(STDIN,"%d %d",$n,$d);
$result=0;
for($i=0;$i<$n;$i++){
fscanf(STDIN,"%d %d",$x,$y);
$D = sqrt($x*$x+$y*$y);
if($D<=$d){
$result++;
}
}
echo $result."\n";
| [["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 6 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long x, y;
long long ans = 0;
for (int i = 1; i <= n; i++) {
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 x, y;
long long ans = 0;
for (int i = 1; i <= n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d) {
ans++;
}
}
cout << ans << endl;
return 0;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long x, y;
long long ans = 0;
for (int i = 1; i <= n; i++) {
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 x, y;
long long ans = 0;
for (int i = 1; i <= n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d * 1.0) {
ans++;
}
}
cout << ans << endl;
return 0;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long x, y;
long long ans = 0;
for (int i = 1; i <= n; i++) {
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 x, y;
long long ans = 0;
for (int i = 1; i <= n; i++) {
cin >> x >> y;
if ((x * x + y * y) <= d * d) {
ans++;
}
}
cout << ans << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 88 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
int X[N], Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
int num = 0;
for (int i = 0; i < N; i++) {
if (D >= sqrt(X[i] * X[i] + Y[i] * Y[i]))
num += 1;
}
cout << num << endl;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
long X[N], Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
int num = 0;
for (int i = 0; i < N; i++) {
if (D >= sqrt(X[i] * X[i] + Y[i] * Y[i]))
num += 1;
}
cout << num << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 120 |
#include <cmath>
#include <iostream>
using namespace std;
typedef long long int ll;
typedef float f;
int main() {
f n, d, x, y, z;
ll l = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
z = sqrt((x * x) + (y * y));
if (z >= d)
l++;
}
cout << l << "\n";
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
typedef long long int ll;
typedef double f;
int main() {
f n, d, x, y, z;
ll l = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
z = sqrt((x * x) + (y * y));
if (z <= d)
l++;
}
cout << l << "\n";
return 0;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 134, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 134, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 96 |
#include <iostream>
using namespace std;
int main() {
int n, d, count = 0;
cin >> n >> d;
for (int i = 1; i <= n; i++) {
long long int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
count++;
}
cout << count << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int n, d, count = 0;
cin >> n >> d;
for (int i = 1; i <= n; i++) {
long long int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
count++;
}
cout << count << endl;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll mat(ll a, ll b) {
ll res = sqrt((a * a) + (b * b));
return res;
}
int main() {
int n;
int d;
cin >> n >> d;
vector<pair<ll, ll>> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i].first >> v[i].second;
}
int cnt = 0;
for (int ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll mat(ll a, ll b) {
ll res = ceil(sqrt((a * a) + (b * b)));
return res;
}
int main() {
int n;
int d;
cin >> n >> d;
vector<pair<ll, ll>> v(n);
for (int i = 0; i < n; i++) {
cin >> v[i].first >> v[i].second;
}
int cnt = 0;
for... | [["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 12, 23, 0, 25]] | 1 | 159 |
def q2():
import math
n, d = map(int, input().split())
points = set([tuple(int(v) for v in input().split()) for v in range(n)])
res = [math.sqrt((x**2 + y**2)) <= d for x, y in points]
print(sum(res))
if __name__ == "__main__":
# q1()
q2()
|
def q2():
import math
n, d = map(int, input().split())
points = [[int(v) for v in input().split()] for v in range(n)]
res = [math.sqrt((x**2 + y**2)) <= d for x, y in points]
print(sum(res))
if __name__ == "__main__":
# q1()
q2()
| [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 658, 8, 652, 63, 22], ["-", 3, 4, 0, 658, 8, 652, 3, 668, 0, 24], ["+", 0, 1, 0, 662, 12, 658, 8, 658, 0, 70], ["-", 3, 4, 0, 658, 8, 652, 3, 668, 0, 25], ["+", 0, 1, 0, 662, 12, 658, 8, 658, 0, 73], ["-", ... | 5 | 98 |
/**
* Dont raise your voice, improve your argument.
* --Desmond Tutu
*/
#include <bits/stdc++.h>
using namespace std;
const bool ready = []() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(12);
return true;
}();
const double PI = acos(-1);
using ll = long long;
#define int l... | /**
* Dont raise your voice, improve your argument.
* --Desmond Tutu
*/
#include <bits/stdc++.h>
using namespace std;
const bool ready = []() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(12);
return true;
}();
const double PI = acos(-1);
using ll = long long;
#define int l... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 266 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<vector<int>> point(N, vector<int>(2));
for (int i = 0; i < N; i++) {
for (int j = 0; j < 2; j++) {
cin >> point.at(i).at(j);
}
}
int count = 0;
for (int i = 0; i < N; i++) {
if (point.at(i).at(... | #include <bits/stdc++.h>
using namespace std;
int main() {
long N, D;
cin >> N >> D;
vector<vector<long>> point(N, vector<long>(2));
for (int i = 0; i < N; i++) {
for (int j = 0; j < 2; j++) {
cin >> point.at(i).at(j);
}
}
int count = 0;
for (int i = 0; i < N; i++) {
if (point.at(i).... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 77, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96], ["-", 0, 2, 63, 346, 3, 347, 0, 77, 39, 40], ["+", 63, 346, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 178 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
ll N;
cin >> N;
map<pair<ll, ll>, ll> ma;
ll ans = 0;
for (int i = 0; i < N; i++) {
long double a;
cin >> a;
ll res = a * INF;
ll cnt2 = 0;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
ll N;
cin >> N;
map<pair<ll, ll>, ll> ma;
ll ans = 0;
for (int i = 0; i < N; i++) {
double a;
cin >> a;
ll res = llround(a * INF);
ll cnt2 =... | [["-", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]] | 1 | 225 |
def howmany2_5(x):
x = x * 10 ** 9
n2, n5 = 0, 0
while x % 2 == 0:
n2 += 1
x //= 2
while x % 5 == 0:
n5 += 1
x //= 5
if n2 > 18:
n2 = 18
if n5 > 18:
n5 = 18
return (n2, n5)
def lower_bound_0(A, x):
s, t = -1, len(A)
while t -... | def howmany2_5(x):
x = round(x * 10 ** 9)
n2, n5 = 0, 0
while x % 2 == 0:
n2 += 1
x //= 2
while x % 5 == 0:
n5 += 1
x //= 5
if n2 > 18:
n2 = 18
if n5 > 18:
n5 = 18
return (n2, n5)
def lower_bound_0(A, x):
s, t = -1, len(A)
wh... | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 206, 206, 663, 0, 657, 12, 22], ["+", 3, 4, 0, 206, 206, 663, 0, 657, 12, 22]] | 5 | 563 |
#ifdef LOCAL
#define _GLIBCXX_DEBUG
#define __clock__
#else
#pragma GCC optimize("Ofast")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using VI = vector<ll>;
using VV = vector<VI>;
using VS = vector<string>;
using PII = pair<ll, ll>;
// tourist set
template <typena... | #ifdef LOCAL
#define _GLIBCXX_DEBUG
#define __clock__
#else
#pragma GCC optimize("Ofast")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using VI = vector<ll>;
using VV = vector<VI>;
using VS = vector<string>;
using PII = pair<ll, ll>;
// tourist set
template <typena... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 2,031 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <vector>
using ll = long long;
using ld = long double;
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) < (b)) ? (b) : (a))
int const nmax = 200000;
std::vector<std::pair<int, int... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <vector>
using ll = long long;
using ld = long double;
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) < (b)) ? (b) : (a))
int const nmax = 200000;
std::vector<std::pair<int, int... | [["-", 8, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["+", 8, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["-", 8, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["+", 8, 57, 15, 339, 51, 16, 12, 16, 31, 13]] | 1 | 341 |
#include <iostream>
#include <set>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int64_t cnvS(string &S) {
int n = S.size();
int64_t ret = 0;
bool count = false;
int times = 9;
rep(i, n) {
if (count)
--times;
if (S[i] == '.')
count = true;
else... | #include <iostream>
#include <set>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int64_t cnvS(string &S) {
int n = S.size();
int64_t ret = 0;
bool count = false;
int times = 9;
rep(i, n) {
if (count)
--times;
if (S[i] == '.')
count = true;
else... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 31, 16, 31, 69, 28, 69, 341, 342, 0, 13], ["+", 31, 16, 31, 69, 28, 69, 341, 342, 0, 13], ["-", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["-", 31, 16, 31, 16, 12, 69, 341, 342, 0, ... | 1 | 468 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | [["-", 12, 16, 31, 16, 31, 69, 341, 342, 0, 22], ["+", 12, 16, 31, 16, 31, 69, 341, 342, 0, 22], ["-", 12, 23, 0, 16, 31, 69, 341, 342, 0, 22], ["+", 12, 23, 0, 16, 31, 69, 341, 342, 0, 22]] | 1 | 4,046 |
import collections
import sys
input = sys.stdin.readline
N = int(input())
A = [input() for i in range(N)]
C = collections.defaultdict(int)
for i, x in enumerate(A):
idx = 0
x = x[:-1]
if '.' in x:
idx = x[::-1].index('.')
x = x.replace('.', '')
x = int(x)
count2 = -idx
count5 = ... | import collections
import sys
input = sys.stdin.readline
N = int(input())
A = [input() for i in range(N)]
C = collections.defaultdict(int)
for i, x in enumerate(A):
idx = 0
x = x[:-1]
if '.' in x:
idx = x[::-1].index('.')
x = x.replace('.', '')
x = int(x)
count2 = -idx
count5 = ... | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 251 |
c=[[0]*50for _ in range(50)]
r=0
for a in[*open(0)][1:]:
a=round(float(a)*10**9)
x=y=0
while a%2<1:
a//=2
x+=1
while a%5<1:
a//=5
y+=1
r+=sum(sum(d[max(0,18-x):])for d in c[max(0,18-y):])
c[x][y]+=1
print(r) | c=[[0]*50for _ in range(50)]
r=0
for a in[*open(0)][1:]:
a=round(float(a)*10**9)
x=y=0
while a%2<1:
a//=2
x+=1
while a%5<1:
a//=5
y+=1
r+=sum(sum(d[max(0,18-y):])for d in c[max(0,18-x):])
c[x][y]+=1
print(r) | [["-", 206, 663, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 206, 663, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 126 |
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)
N = int(input())
from collections import defaultdict
dic = defaultdict(int)
for _ in range(N):
a = float(input())*(10**9)
a = int(a+0.1)
num2, num5 = 0, 0
while a%2==0... | import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)
N = int(input())
from collections import defaultdict
dic = defaultdict(int)
for _ in range(N):
a = float(input())*(10**9)
a = int(a+0.1)
num2, num5 = 0, 0
while a%2==0... | [["-", 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 | 267 |
import sys
input = sys.stdin.readline
N=int(input())
A=[input().strip() for i in range(N)]
X=[]
for a in A:
TWO=0
FIVE=0
if "." in a:
x=a.split(".")
L=len(x[1])
#print(x,L)
TWO-=L
FIVE-=L
x=int("".join(x))
#print(x)
while x%2==0:
... | import sys
input = sys.stdin.readline
N=int(input())
A=[input().strip() for i in range(N)]
X=[]
for a in A:
TWO=0
FIVE=0
if "." in a:
x=a.split(".")
L=len(x[1])
#print(x,L)
TWO-=L
FIVE-=L
x=int("".join(x))
#print(x)
while x%2==0:
... | [["-", 0, 677, 31, 206, 51, 206, 206, 657, 12, 612], ["+", 0, 677, 31, 206, 51, 206, 206, 657, 12, 612], ["-", 0, 1, 0, 677, 31, 206, 206, 657, 12, 612], ["+", 0, 1, 0, 677, 31, 206, 206, 657, 12, 612], ["-", 0, 677, 12, 206, 51, 206, 206, 657, 12, 612], ["+", 0, 677, 12, 206, 51, 206, 206, 657, 12, 612], ["-", 0, 1, 0... | 5 | 336 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unorder... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unorder... | [["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 1,195 |
def divisors(n,x)
i = 0
while n % x == 0
n = n / x
i += 1
end
i
end
N = gets.to_i
a = N.times.map{gets.to_f}
arr = Array.new(13){Array.new(4){Hash.new(0)}}
a.each do |xx|
bit = 9
x = ((xx+0.00000000001) * (10 ** 9)).floor
puts x
while x % 10 == 0
bit -= 1
x /= 10
end
if x % 5 == 0
... | def divisors(n,x)
i = 0
while n % x == 0
n = n / x
i += 1
end
i
end
N = gets.to_i
a = N.times.map{gets.to_f}
arr = Array.new(13){Array.new(4){Hash.new(0)}}
a.each do |xx|
bit = 9
x = ((xx+0.00000000001) * (10 ** 9)).floor
while x % 10 == 0
bit -= 1
x /= 10
end
if x % 5 == 0
arr[bit... | [["-", 0, 652, 196, 737, 8, 736, 0, 652, 735, 22], ["-", 196, 737, 8, 736, 0, 652, 3, 4, 0, 22]] | 4 | 502 |
#include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
void Main() {
int n, d;
cin >> n >> d;
vector<int> x(n);
vector<int> y(n);
vector<double> p(n);
rep(i, n) { cin >> x[i] >> y[i]; }
int ans = 0;
rep(i, n) {
p... | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
void Main() {
int n, d;
cin >> n >> d;
vector<ll> x(n);
vector<ll> y(n);
vector<long double> p(n);
rep(i, n) { cin >> x[i] >> y[i]; }
int ans = 0;
rep(i, n) {
... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 203 |
function main(arg) {
let [N, D] = arg.split("\n")[0].split(" ").map(Number)
let p = arg.split("\n")
p.shift()
let x = p.map(x => Number(x.split(" ")[0]))
let y = p.map(y => Number(y.split(" ")[1]))
let counter = 0
for (let i = 0; i < N; i++) {
if (D ** 2 <= x[i] ** 2 + y[i] ** 2) {
counter++
... | function main(arg) {
let [N, D] = arg.split("\n")[0].split(" ").map(Number)
let p = arg.split("\n")
p.shift()
let x = p.map(x => Number(x.split(" ")[0]))
let y = p.map(y => Number(y.split(" ")[1]))
let counter = 0
for (let i = 0; i < N; i++) {
if (D ** 2 >= x[i] ** 2 + y[i] ** 2) {
counter++
... | [["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 20]] | 2 | 172 |
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define f f... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define f f... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 4... | 1 | 382 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.