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 |
|---|---|---|---|---|
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)]
ans = 0
def aa(x,y):
z = abs(x)**2 + abs(y)**2
a = math.sqrt(z)
return a
for k in range(N):
b = aa(x[k],y[k])
if b >= D:
ans += 1
print(ans) | 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)]
ans = 0
def aa(x,y):
z = abs(x)**2 + abs(y)**2
a = math.sqrt(z)
return a
for k in range(N):
b = aa(x[k],y[k])
if b <= 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 | 129 |
import math
n, d = list(map(int, input().split()))
cnt = 0
for i in range(n):
x, y = list(map(int, input().split()))
ans = math.sqrt(x*x + y*y)
if ans>=d:
cnt+=1
print(cnt) | import math
n, d = list(map(int, input().split()))
cnt = 0
for i in range(n):
x, y = list(map(int, input().split()))
ans = math.sqrt(x*x + y*y)
#print(ans)
if ans<=d:
cnt+=1
print(cnt) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 77 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
vector<long long> x(n);
vector<long long> 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) {
a... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, ans = 0;
cin >> n >> d;
vector<long long> x(n);
vector<long long> y(n);
for (long long i = 0; i < n; i++) {
cin >> x[i] >> y[i];
}
for (long long i = 0; i < n; i++) {
if (x[i] * x[i] + y[i] * y[i] <... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 133 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m, ans = 0;
cin >> n >> m;
long long a, b;
for (int i = 1; i <= n; ++i) {
scanf("%lld%lld", &a, &b);
a = a * a;
b = b * b;
a = a + b;
if (a < 1ll * m * m) {
ans++;
}
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m, ans = 0;
cin >> n >> m;
long long a, b;
for (int i = 1; i <= n; ++i) {
scanf("%lld%lld", &a, &b);
a = a * a;
b = b * b;
a = a + b;
if (a <= 1ll * m * m) {
ans++;
}
}
cout << ans;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, k, c = 0;
cin >> n >> k;
long double p;
for (int i = 1; i <= n; i++) {
int a, b;
cin >> a >> b;
p = sqrt(a * a + b * b);
if (p <= k)
c++;
}
cout << c << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, k, c = 0;
cin >> n >> k;
long double p;
for (int i = 1; i <= n; i++) {
long double a, b;
cin >> a >> b;
p = sqrt(a * a + b * b);
if (p <= k)
c++;
}
cout << c << endl;
return 0;
} | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 91 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int n, d, count = 0;
cin >> n >> d;
int a, b;
for (int i = 0; i < n; i++) {
cin >> a >> b;
if (sqrt(a * a + b * b) <= d)
count++;
}
cout << count;
return 0;
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
long int n, d, count = 0;
cin >> n >> d;
long int a, b;
for (long int i = 0; i < n; i++) {
cin >> a >> b;
if (sqrt(a * a + b * b) <= d)
count++;
}
cout << count;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 81 |
N,M=list(map(int,input().split()))
ans=0
for u in range(N):
a,b=map(int,input().split())
S=a*a+b*b
if M*M<=S:
ans+=1
print(ans) | N,M=list(map(int,input().split()))
ans=0
for u in range(N):
a,b=map(int,input().split())
S=a*a+b*b
if M*M>=S:
ans+=1
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 69 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
FastReader fs = new FastReader();
out = new PrintWriter(new BufferedOutputStream(System.out));
int n = fs.nextInt();
int d = fs.nextInt();
int ans = 0;
for (int i = 0; i < n;... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
FastReader fs = new FastReader();
out = new PrintWriter(new BufferedOutputStream(System.out));
int n = fs.nextInt();
int d = fs.nextInt();
int ans = 0;
for (int i = 0; i < n;... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 340 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int point = sc.nextInt();
int distance = sc.nextInt();
int ans = 0;
for (int i = 0; i < point; i++) {
int p = sc.nextInt();
int q = sc.nextInt();
if (distance >... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int point = sc.nextInt();
int distance = sc.nextInt();
int ans = 0;
for (int i = 0; i < point; i++) {
double p = sc.nextInt();
double q = sc.nextInt();
if (dist... | [["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 511, 0, 512]] | 3 | 125 |
N,D = map(int,input().split())
print(N)
L=[list(map(int,input().split())) for _ in range(N)]
count = 0
for i in L:
if i[0]**2+i[1]**2<=D**2:
count+=1
print(count)
| N,D = map(int,input().split())
L=[list(map(int,input().split())) for _ in range(N)]
count = 0
for i in L:
if i[0]**2+i[1]**2<=D**2:
count+=1
print(count)
| [["-", 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 | 80 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
int num = scanner.nextInt();
int distance = scanner.nextInt();
distance = distance * distance;
int cnt = 0;
for (int i = 0; i < num; i++) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
long num = scanner.nextInt();
long distance = scanner.nextInt();
distance = distance * distance;
long cnt = 0;
for (long i = 0; i < num; i++) ... | [["-", 0, 530, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 530, 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], ["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 128 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define newl '\n'
bool isprime(ll a) {
if (a <= 1)
return false;
if (a == 2 || a == 3)
return true;
if (a % 2 == 0 || a % 3 == 0)
return false;
for (ll i = 5; i * i <= a; i = i + 6) {
if (a % i == 0 || a % (i + 2) == 0)
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define newl '\n'
bool isprime(ll a) {
if (a <= 1)
return false;
if (a == 2 || a == 3)
return true;
if (a % 2 == 0 || a % 3 == 0)
return false;
for (ll i = 5; i * i <= a; i = i + 6) {
if (a % i == 0 || a % (i + 2) == 0)
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78]] | 1 | 198 |
#include <algorithm>
#include <cstdio>
using namespace std;
long long N, D;
int main() {
scanf("%lld%lld", &N, &D);
int ans = 0;
for (int i = 1; i <= N; i++) {
long long x, y;
scanf("%lld%lld", &x, &y);
if (x * x + y * y <= D)
ans++;
}
printf("%lld\n", ans);
return 0;
} | #include <algorithm>
#include <cstdio>
using namespace std;
long long N, D;
int main() {
scanf("%lld%lld", &N, &D);
D = D * D;
int ans = 0;
for (int i = 1; i <= N; i++) {
long long x, y;
scanf("%lld%lld", &x, &y);
if (x * x + y * y <= D)
ans++;
}
printf("%lld\n", ans);
return 0;
} | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 101 |
#include <math.h>
#include <stdio.h>
int main() {
int n, d, ans;
scanf("%d %d", &n, &d);
double dis = 0;
for (int i = 0; i < n; i++) {
double x, y;
scanf("%lf %lf", &x, &y);
dis = sqrt(x * x + y * y);
if (dis < d)
ans++;
}
printf("%d\n", ans);
} | #include <math.h>
#include <stdio.h>
int main() {
int n, d, ans = 0;
scanf("%d %d", &n, &d);
double dis = 0;
for (int i = 0; i < n; i++) {
double x, y;
scanf("%lf %lf", &x, &y);
dis = sqrt(x * x + y * y);
if (dis <= d)
ans++;
}
printf("%d\n", ans);
} | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 101 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <vector>
#define pb push_back
#define x first
#define y second
#define endl '\n'
#define hell 998244353
#def... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <vector>
#define pb push_back
#define x first
#define y second
#define endl '\n'
#define hell 998244353
#def... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 0, 9, 0, 43, 49, 50, 51, 74, 0, 24], ["+", 0, 43, 49, 50, 51, 74, 39, 77, 39, 40], ["+", 0, 9, 0, 43, 49, 50, 51, 74, 0, 25], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 498 |
#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define f(i, a, b) for (int i = (a); i < (b); ++i)
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, d, x, y, cnt = 0;
cin >> n >> d;
f(i, 0, n) {
cin >> x >> y;
ll a = sqrt(x * x + y * y);
if ... | #include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define ll long long
#define f(i, a, b) for (int i = (a); i < (b); ++i)
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, d, x, y, cnt = 0;
cin >> n >> d;
f(i, 0, n) {
cin >> x >> y;
double a = sqrt(x * x + y * y);
... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40]] | 1 | 109 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
const int Maxn = 200000 + 10;
int n, m, ans;
double a[Maxn], b[Maxn];
inline double dis(int x, int y) { return sqrt((x * x) + (y * y)); }
inline int read() {
int s = 0, w = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
const int Maxn = 200000 + 10;
int n, m, ans;
double a[Maxn], b[Maxn];
inline double dis(double x, double y) { return sqrt((x * x) + (y * y)); }
inline int read() {
int s = 0, w = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40]] | 1 | 258 |
N, D = map(int, input().split())
L = [list(map(int, input().split())) for i in range(N)]
counter = 0
for list in L:
if list[0]**2+ list[1]**2 <= D:
counter = counter + 1
print(str(counter)) | N, D = map(int, input().split())
L = [list(map(int, input().split())) for i in range(N)]
counter = 0
for list in L:
if list[0]**2+ list[1]**2 <= D**2:
counter = counter + 1
print(str(counter)) | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 79 |
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long int;
using namespace std;
int main() {
int n, d;
cin >> n >> d;
vector<int> x(n), y(n);
rep(i, n) cin >> x[i] >> y[i];
int ans = 0;
rep(i, n) {
double dis = sqrt(x[i] * x[i] + y[i]... | #include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long int;
using namespace std;
int main() {
int n, d;
cin >> n >> d;
vector<double> x(n), y(n);
rep(i, n) cin >> x[i] >> y[i];
int ans = 0;
rep(i, n) {
double dis = sqrt(x[i] * x[i] + y... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]] | 1 | 132 |
#include <bits/stdc++.h>
using namespace std;
int n, dem = 0;
long long d;
void nhap() {
scanf("%d %lld", &n, &d);
for (int i = 1; i <= n; ++i) {
long long x, y;
scanf("%lld %lld", &x, &y);
long long k = x * x + y * y;
dem += (k <= d);
}
cout << dem;
}
int main() {
nhap();
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int n, dem = 0;
long long d;
void nhap() {
scanf("%d %lld", &n, &d);
d = d * d;
for (int i = 1; i <= n; ++i) {
long long x, y;
scanf("%lld %lld", &x, &y);
long long k = x * x + y * y;
dem += (k <= d);
}
cout << dem;
}
int main() {
nhap();
r... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 108 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
int N, D, i, c = 0, x[200000] = {0}, y[200000] = {0};
cin >> N >> D;
D = D * D;
for (i = 0; i < N; i++) {
cin >> x[i] >> y[i];
if ((x[i] * x[i] + y[i] * y[i]) <= D) {
c++;
}
}
cout << c << endl;
return 0;
} | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
long int N, D, i, c = 0, x[200000] = {0}, y[200000] = {0};
cin >> N >> D;
D = D * D;
for (i = 0; i < N; i++) {
cin >> x[i] >> y[i];
if ((x[i] * x[i] + y[i] * y[i]) <= D) {
c++;
}
}
cout << c << endl;
return 0;... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 122 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n, d;
cin >> n >> d;
int c = 0;
for (ll i = 0; i < n; i++) {
int a, b;
cin >> a >> b;
if (d > sqrt(pow(a, 2) + pow(b, 2))) {
c++;
}
}
cout << c;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n, d;
cin >> n >> d;
ll c = 0;
for (ll i = 0; i < n; i++) {
ll a, b;
cin >> a >> b;
if (d >= sqrt(pow(a, 2) + pow(b, 2))) {
c++;
}
}
cout << c;
} | [["-", 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], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 91 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int counter = 0;
rep(i, n) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
counter++;
}
cout << counter << endl;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
int counter = 0;
rep(i, n) {
long long x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
counter++;
}
cout << counter << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
#define GO \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define int lon... | #include <bits/stdc++.h>
using namespace std;
#define GO \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define int lon... | [["+", 0, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 74, 51, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 74, 51, 23, 0, 16, 12, 23, 0, 24], ["+", 0, 74, 51, 23, 0, 16, 12, 23, 0, 25], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 110 |
n,d = map(int,input().split())
d *= d
p = 0
for i in range(n):
x,y = map(int,input().split())
if(d <= x**2 + y**2):
p += 1
print(p) | n,d = map(int,input().split())
d *= d
p = 0
for i in range(n):
x,y = map(int,input().split())
if(d >= x**2 + y**2):
p += 1
print(p) | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 66 |
import math
n, d = map(int, input().split())
m = 0
for _ in range(n):
a, b = map(int, input().split())
a = a * a
b = b * b
if(d <= math.sqrt(a + b)):
m += 1
print(m) | import math
n, d = map(int, input().split())
m = 0
for _ in range(n):
a, b = map(int, input().split())
a = a * a
b = b * b
if(d >= math.sqrt(a + b)):
m += 1
print(m) | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 76 |
#include "bits/stdc++.h"
using namespace std;
// wierd debugging stuff
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( ... |
#include "bits/stdc++.h"
using namespace std;
// wierd debugging stuff
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( ... | [["-", 0, 42, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 42, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 793 |
// Created by ...
#include <bits/stdc++.h>
#define db1(x) cout << #x << "=" << x << '\n'
#define db2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << '\n'
#define db3(x, y, z) \
cout << #x << "=" << x << "," << #y << "=" << y << "," << #z << "=" << z ... | // Created by ...
#include <bits/stdc++.h>
#define db1(x) cout << #x << "=" << x << '\n'
#define db2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << '\n'
#define db3(x, y, z) \
cout << #x << "=" << x << "," << #y << "=" << y << "," << #z << "=" << z ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 409 |
#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define MAX INT_MAX
#define MOD 1000000007
using namespace std;
int main() {
ll n, d;
cin >> n >> d;
ll count = 0;
for (int i = 0; i < n; ++i) {
ll x, y;
cin >> x >> y;
if ((x ^ 2 + y ^ 2) <= d ^ 2)
count++;
}
cout << ... | #include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define MAX INT_MAX
#define MOD 1000000007
using namespace std;
int main() {
ll n, d;
cin >> n >> d;
ll count = 0;
for (int i = 0; i < n; ++i) {
ll x, y;
cin >> x >> y;
if ((x * x + y * y) <= d * d)
count++;
}
cout << ... | [["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 140], ["-", 31, 23, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 51, 16, 31, 16, 31, 23, 0, 16, 17, 140], ["-", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, ... | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
#define mp make_pair
#define pb push_back
#define rsz resize
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
void setIO(string name = "") {
freopen((name + ".in").c_str(), "r", stdi... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
#define mp make_pair
#define pb push_back
#define rsz resize
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
void setIO(string name = "") {
freopen((name + ".in").c_str(), "r", stdi... | [["-", 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], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 200 |
#include <iostream>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int c = 0;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
c++;
}
cout << c << endl;
} | #include <iostream>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
int c = 0;
for (int i = 0; i < n; i++) {
long long x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
c++;
}
cout << c << 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 | 78 |
#include "bits/stdc++.h"
typedef long long ll;
#define all(x) (x).begin(), (x).end() // sortなどの引数を省略
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define max3(x, y, z) max(x, max(y, z))
#define min3(x, y, z) min(x, min(y, z))
#ifdef _MSC_FULL_VER //デバッグ出力
#define dout cout
#define debug() if (true)
#define chec... | #include "bits/stdc++.h"
typedef long long ll;
#define all(x) (x).begin(), (x).end() // sortなどの引数を省略
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define max3(x, y, z) max(x, max(y, z))
#define min3(x, y, z) min(x, min(y, z))
#ifdef _MSC_FULL_VER //デバッグ出力
#define dout cout
#define debug() if (true)
#define chec... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 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 | 162 |
#include <iostream>
int n, d, x, y, ans = 0;
int main() {
std::cin >> n >> d;
d = d * d;
for (int i = 0; i < n; i++) {
std::cin >> x >> y;
if (d >= x * x + y * y) {
ans++;
}
}
std::cout << ans << std::endl;
return 0;
} | #include <iostream>
long int n, d, x, y, ans = 0;
int main() {
std::cin >> n >> d;
d = d * d;
for (int i = 0; i < n; i++) {
std::cin >> x >> y;
if (d >= x * x + y * y) {
ans++;
}
}
std::cout << ans << std::endl;
return 0;
} | [["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]] | 1 | 89 |
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
int x, y;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= D) {
count++;
}
}
cout << count << '\n';
return 0;
} | #include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
double x, y;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> x >> y;
// cout << "sqrt = " <<sqrt(x*x + y*y);
if (sqrt(x * x + y * y) <= D) {
count++;
}
}
cout <<... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 90 |
// Written by Shagoto
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int n = read.nextInt();
int d = read.nextInt();
int count = 0;
for (int x = 1; x <= n; x++) {
int a = read.nextInt();
int b = read.nextInt();
... | // Written by Shagoto
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner read = new Scanner(System.in);
int n = read.nextInt();
int d = read.nextInt();
int count = 0;
for (int x = 1; x <= n; x++) {
long a = read.nextInt();
long b = read.nextInt();... | [["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 133 |
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
int count = 0;
int n, d;
cin >> n >> d;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
x = pow(x, 2);
y = pow(y, 2);
if (sqrt(x + y) <= d) {
count++;
}
}
cout << count << endl;
return (0);
} | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
long long count = 0;
long long n, d;
cin >> n >> d;
for (int i = 0; i < n; i++) {
long long x, y;
cin >> x >> y;
x = pow(x, 2);
y = pow(y, 2);
if (sqrt(x + y) <= d) {
count++;
}
}
cout << count << end... | [["-", 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 <algorithm> //sort,二分探索,など
#include <cmath>
#include <iostream>
#include <map> //map(辞書)
#include <vector> //可変長配列
using namespace std;
int main(void) {
int N, D;
cin >> N >> D;
int x, y;
double l;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> x >> y;
l = sqrt(x * x + y * y);
... | #include <algorithm> //sort,二分探索,など
#include <cmath>
#include <iostream>
#include <map> //map(辞書)
#include <vector> //可変長配列
using namespace std;
int main(void) {
int N, D;
cin >> N >> D;
long x, y;
double l;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> x >> y;
l = sqrt(x * x + y * y);
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
int D;
cin >> N >> D;
int Ans = 0;
vector<int> zahyo(2 * N);
for (int i = 0; i < 2 * N; i++) {
cin >> zahyo.at(i);
}
for (int i = 0; i < 2 * N; i = i + 2) {
if (zahyo.at(i) * zahyo.at(i) + zahyo.at(i + 1) * zahyo.at(i + 1) <=
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
long int D;
cin >> N >> D;
int Ans = 0;
vector<long int> zahyo(2 * N);
for (int i = 0; i < 2 * N; i++) {
cin >> zahyo.at(i);
}
for (int i = 0; i < 2 * N; i = i + 2) {
if (zahyo.at(i) * zahyo.at(i) + zahyo.at(i + 1) * zahyo.at(i ... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 135 |
n,d=map(int,input().split())
c=0
for i in range(n):
import math
x,y=map(int,input().split())
#print(math.sqrt(x*x+y*y))
if math.sqrt(x*x+y*y)>=d:
c+=1
print(c)
| n,d=map(int,input().split())
c=0
for i in range(n):
import math
x,y=map(int,input().split())
#print(math.sqrt(x*x+y*y))
if math.sqrt(x*x+y*y)<=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 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, count = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
int d = (x * x) + (y * y);
if (d <= D)
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D, count = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
double x, y;
cin >> x >> y;
double d = sqrt((x * x) + (y * y));
if (d <= D)
count++;
}
cout << count << endl;
} | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 51, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 51, 2, 3, 4, 0, 16, 12, 23, 0, 25]] | 1 | 84 |
/* nuttela - Soham Chakrabarti */
#include <bits/stdc++.h>
using namespace std;
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define all(v) v.begin(), v.end()
#define pb push_back
#def... | /* nuttela - Soham Chakrabarti */
#include <bits/stdc++.h>
using namespace std;
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define all(v) v.begin(), v.end()
#define pb push_back
#def... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 9, 0, 57... | 1 | 375 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int x, y;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d * d >= (x * x + y * y)) {
ans++;
}
}
cout << ans << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long x, y;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d * d >= (x * x + y * y)) {
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 | 84 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int N, D;
int count = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
int temp1, temp2;
cin >> temp1 >> temp2;
if (D * D >= temp1 * temp1 + temp2 * temp2)
count++;
}
printf("%d", count);
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
long int N, D;
int count = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
long int temp1, temp2;
cin >> temp1 >> temp2;
if (D * D >= temp1 * temp1 + temp2 * temp2)
count++;
}
printf("%d", count);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
ll n, d;
cin >> n >> d;
vector<ll> x(n), y(n);
ll cnt = 0;
rep(i, n) {
cin >> x[i] >> y[i];
if (d * d >= x[i] * x[i] + y[i] * y[i]) {
cnt++;
}
cout << cnt << en... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
ll n, d;
cin >> n >> d;
vector<ll> x(n), y(n);
ll cnt = 0;
rep(i, n) {
cin >> x[i] >> y[i];
if (d * d >= x[i] * x[i] + y[i] * y[i]) {
cnt++;
}
}
cout << cnt << ... | [["+", 0, 14, 8, 9, 0, 14, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 14, 8, 9, 0, 46]] | 1 | 113 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
double x, y;
cin >> x >> y;
int asd = pow(x, 2) + pow(y, 2);
double distance = sqrt(asd);
if (distance <= d) {
count++;
}
}
cout << count <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
double n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
double x, y;
cin >> x >> y;
long long int asd = pow(x, 2) + pow(y, 2);
long double distance = sqrt(asd);
if (distance <= d) {
count++;
}
}
c... | [["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 100 |
#include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define ll lo... | #include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define ll lo... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 527 |
// Shinchan Loves Coding :)))
#include <bits/stdc++.h>
#include <map>
#include <set>
#include <stack>
using namespace std;
#define night_rider \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define int long ... | // Shinchan Loves Coding :)))
#include <bits/stdc++.h>
#include <map>
#include <set>
#include <stack>
using namespace std;
#define night_rider \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define int long ... | [["-", 0, 52, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 52, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 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], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 539 |
import math
m, n = map(int, input().split())
c = 0
for lp in range(m):
a, b = map(int, input().split())
if math.sqrt((a * a) + (b * b)) >= n:
c = c + 1
print(c) | import math
m, n = map(int, input().split())
c = 0
for lp in range(m):
a, b = map(int, input().split())
if math.sqrt((a * a) + (b * b)) <= n:
c = 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 | 74 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<long long int> X(N), Y(N);
for (int i = 0; i < N; ++i) {
cin >> X[i] >> Y[i];
}... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<long long int> X(N), Y(N);
for (int i = 0; i < N; ++i) {
cin >> X[i] >> Y[i];
}... | [["-", 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 | 156 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
long n, d;
cin >> n >> d;
long cnt = 0;
while (n--) {
long x, y;
cin >> x >> y;
if (sqrt(pow(x, 2) + pow(y, 2)) == d)
cnt++;
}
cout << cnt;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
long n, d;
cin >> n >> d;
long cnt = 0;
while (n--) {
long x, y;
cin >> x >> y;
if (sqrt(pow(x, 2) + pow(y, 2)) <= d)
cnt++;
}
cout << cnt;
} | [["-", 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>
#define Imposter \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define pb push_back
#define ll long long int
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_poli... | #include <bits/stdc++.h>
#define Imposter \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define pb push_back
#define ll long long int
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_poli... | [["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 14, 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 | 153 |
import math
n,d = map(int,input().split())
xy = [list(map(int,input().split())) for _ in range(n)]
cnt = 0
for i in range(n):
if math.sqrt((xy[0])**2 + (xy[1])**2) <= d:
cnt += 1
print(cnt) | import math
n,d = map(int,input().split())
xy = [list(map(int,input().split())) for _ in range(n)]
cnt = 0
for i in range(n):
if math.sqrt((xy[i][0])**2 + (xy[i][1])**2) <= d:
cnt += 1
print(cnt) | [["+", 31, 657, 31, 23, 0, 206, 51, 206, 206, 22], ["+", 31, 657, 31, 23, 0, 206, 51, 206, 0, 73], ["+", 0, 657, 31, 657, 31, 23, 0, 206, 0, 70], ["+", 12, 657, 31, 23, 0, 206, 51, 206, 0, 70], ["+", 12, 657, 31, 23, 0, 206, 51, 206, 206, 22], ["+", 12, 657, 31, 23, 0, 206, 51, 206, 0, 73]] | 5 | 88 |
N,D = map(int,input().split())
ans = 0
for i in range(N):
num1,num2 = map(float,input().split())
if (num1 ** 2 + num2 ** 2) ** (1 / 2) < D:
ans += 1 | N,D = map(int,input().split())
ans = 0
for i in range(N):
num1,num2 = map(float,input().split())
if (num1 ** 2 + num2 ** 2) ** (1 / 2) <= 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], ["+", 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 | 65 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long long int n, i, k, l = 0, d;
cin >> n >> d;
long long int a[n], b[n];
for (i = 0; i < n; i++) {
cin >> a[i] >> b[i];
if (d * d <= (a[i] * a[i] + b[i] * b[i])) {
l++... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long long int n, i, k, l = 0, d;
cin >> n >> d;
long long int a[n], b[n];
for (i = 0; i < n; i++) {
cin >> a[i] >> b[i];
if (d * d >= (a[i] * a[i] + b[i] * b[i])) {
l++... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 118 |
n, d = map(int, input().split())
count = 0
for i in range(n):
x, y = map(int, input().split())
if pow((pow(x, 2) + pow(y, 2)), 0.5) >= d:
count += 1
print(count) | n, d = map(int, input().split())
count = 0
for i in range(n):
x, y = map(int, input().split())
if pow((pow(x, 2) + pow(y, 2)), 0.5) <= 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 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here!
int a, b, k = 0;
cin >> a >> b;
int x, y;
for (int i = 0; i < a; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= b) {
k++;
}
}
cout << k;
}
| #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(void) {
// Your code here!
int a, b, k = 0;
cin >> a >> b;
int x, y;
for (int i = 0; i < a; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= b) {
k++;
}
}
cout << k;
}
| [["+", 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 | 80 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int(i) = 0; (i) < (n); ++(i))
const int INF = 1001001001;
int main() {
ll n, d;
cin >> n >> d;
vector<ll> x(n), y(n);
ll count = 0;
rep(i, n) {
cin >> x[i] >> y[i];
if (d * d <= x[i] * x[i] + y[i] * y[i]) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int(i) = 0; (i) < (n); ++(i))
const int INF = 1001001001;
int main() {
ll n, d;
cin >> n >> d;
vector<ll> x(n), y(n);
ll count = 0;
rep(i, n) {
cin >> x[i] >> y[i];
if (d * d >= x[i] * x[i] + y[i] * y[i]) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 119 |
#include <stdio.h>
#include <string.h>
int main() {
int n, d, c;
c = 0;
scanf("%d %d", &n, &d);
int x[200000], y[200000];
for (int i = 0; i < n; i++) {
scanf("%d %d", &x[i], &y[i]);
}
for (int i = 0; i < n; i++) {
if (x[i] * x[i] + y[i] * y[i] <= d * d)
c++;
}
printf("%d", c);
return ... | #include <stdio.h>
#include <string.h>
int main() {
long n, d, c;
c = 0;
scanf("%ld %ld", &n, &d);
long x[200000], y[200000];
for (int i = 0; i < n; i++) {
scanf("%ld %ld", &x[i], &y[i]);
}
for (int i = 0; i < n; i++) {
if (x[i] * x[i] + y[i] * y[i] <= d * d)
c++;
}
printf("%d", c);
r... | [["-", 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 | 137 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, count = 0;
cin >> n >> d;
while (n--) {
long long int x, y;
cin >> x >> y;
long long int p = (x * x) + (y * y);
p = sqrt(p);
if (p <= d)
count++;
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, count = 0;
cin >> n >> d;
while (n--) {
long long int x, y;
cin >> x >> y;
double p = (x * x) + (y * y);
p = sqrt(p);
if (p <= d)
count++;
}
cout << count << endl;
return 0;
} | [["-", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 52, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40]] | 1 | 91 |
from math import *
n,d=map(int,input().split())
k=d*d
ans=0
for i in range(n):
x,y=map(int,input().split())
x1=x**2
y1=y**2
m=x1+y1
if m>=k:
ans=ans+1
print(ans) | from math import *
n,d=map(int,input().split())
k=d*d
ans=0
for i in range(n):
x,y=map(int,input().split())
x1=x**2
y1=y**2
m=x1+y1
if m<=k:
ans=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 | 81 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int k;
cin >> k;
int d;
cin >> d;
int ats = 0;
for (int i = 0; i < k; i++) {
int x;
int y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= d) {
ats++;
}
}
cout << ats << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int k;
cin >> k;
double d;
cin >> d;
int ats = 0;
for (int i = 0; i < k; i++) {
long long x;
long long y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= d) {
ats++;
}
}
cout << ats << endl;
}
| [["-", 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], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 87 |
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 count = 0;
for (int i = 0; i < N; i++) {
int x = sc.nextInt();
int y = sc.nextInt();
double d = Math.sqrt(... | 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 count = 0;
for (int i = 0; i < N; i++) {
long x = sc.nextLong();
long y = sc.nextLong();
double d = Math.s... | [["-", 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 | 128 |
/* Bismillahir Rahmanir Rahim
There is no god without Allah*/
#include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ul;
#define pi acos(-1)
#define ll long long
#define ull unsigned long long
#define vec vector<ll>
#define f1(i, n) for (i = 1; i < n; i++)
#define test ... | /* Bismillahir Rahmanir Rahim
There is no god without Allah*/
#include <bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ul;
#define pi acos(-1)
#define ll long long
#define ull unsigned long long
#define vec vector<ll>
#define f1(i, n) for (i = 1; i < n; i++)
#define test ... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 128 |
// solution by Vitaliy Eroshin | 2020
#include <iostream>
#define endl "\n"
#define int long long
using namespace std;
const long long INF = 1e18;
void solve() {
int n;
long double 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)
... | // solution by Vitaliy Eroshin | 2020
#include <iostream>
#define endl "\n"
#define int long long
using namespace std;
const long long INF = 1e18;
void solve() {
int n;
long double 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)
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 163 |
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
void load(void);
void calc(void);
void output(void);
int N, D, res = 0;
int main() {
load();
output();
return 0;
}
void load(void) {
int i, X, Y;
cin >> N >> D;
for (i = 0; i < N; i++) {... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
void load(void);
void calc(void);
void output(void);
long long N, D, res = 0;
int main() {
load();
output();
return 0;
}
void load(void) {
long long i, X, Y;
cin >> N >> D;
for (i = 0; i... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 131 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
// input N
Scanner sc = new Scanner(System.in);
int N = sc.nextInt(), D = sc.nextInt();
int ANS = 0;
for (int i = 0; i < N; i++) {
int x = sc.nextInt(), y = sc.nextInt();
if (D * D >= x ... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
// input N
Scanner sc = new Scanner(System.in);
long N = sc.nextInt(), D = sc.nextInt();
int ANS = 0;
for (int i = 0; i < N; i++) {
long x = sc.nextInt(), y = sc.nextInt();
if (D * D >= ... | [["-", 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 | 127 |
#include <bits/stdc++.h>
using namespace std;
main() {
double n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
double x, y;
cin >> x >> y;
double dst = sqrt((x * x) + (y * y));
if (dst <= d)
count++;
}
return count;
}
| #include <bits/stdc++.h>
using namespace std;
main() {
double n, d;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
double x, y;
cin >> x >> y;
double dst = sqrt((x * x) + (y * y));
if (dst <= d)
count++;
}
cout << count;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]] | 1 | 84 |
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long int ll;
void solve() {
int n, d, c = 0, x, y;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if ((x * x + y * y) <= (d * d))
c++;
}
cou... | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long int ll;
void solve() {
ll n, d, c = 0, x, y;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (((x * x) + (y * y)) <= (d * d))
c++;
}
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 51, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 12, 23, 0, 25]] | 1 | 132 |
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 ans = 0;
for (int i = 0; i < n; i++) {
long x = sc.nextLong();
long y = sc.nextLong();
if (x * x + y * y <= d) ... | 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 ans = 0;
for (int i = 0; i < n; i++) {
long x = sc.nextLong();
long y = sc.nextLong();
if (x * x + y * y <= d * ... | [["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 22]] | 3 | 118 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <ctime>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <ctime>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string... | [["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 20], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 19]] | 1 | 351 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int t = 1;
// cin>>t;
while (t--) {
int n, k, i, x, y, z, ans = 0;
cin >> n >> k;
for (i = 0; i < n; i++) {
cin >> x >> y;
z = (x * x + y * y);
z = sqrt(z);
int p = k;
if (z <= p)
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int t = 1;
// cin>>t;
while (t--) {
int n, k, i, x, y, ans = 0;
cin >> n >> k;
for (i = 0; i < n; i++) {
cin >> x >> y;
double z = (x * x + y * y);
z = sqrt(z);
double p = k;
if (z <= p)
... | [["-", 8, 9, 0, 52, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 0, 21], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 111 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int n, d;
cin >> n >> d;
int cnt = 0;
for (int i = 0; i < n; ++i) {
int a, b;
cin >> a >> b;
double dist = sqrt(a * a * 1.0 + b * b * 1.0);
if ((double)d >= dist)
cnt++;
}
cout << cnt;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int n, d;
cin >> n >> d;
int cnt = 0;
for (int i = 0; i < n; ++i) {
long long int a, b;
cin >> a >> b;
long double dist = sqrt(a * a * 1.0 + b * b * 1.0);
if ((long double)d >= dist)
cnt++;
}... | [["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 51, 16, 31, 74, 39, 77, 39, 86, 0, 96]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
long int n, d;
cin >> n >> d;
int c = 0;
for (int i = 1; i <= n; i++) {
int x, y;
cin >> x >> y;
long int res = sqrt(x * x + y * y);
if (res <= d)
c++;
}
cout << c;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
long int n;
long double d;
cin >> n >> d;
int c = 0;
for (int i = 1; i <= n; i++) {
long int x, y;
cin >> x >> y;
long double res = sqrt(x * x + y * y);
if (res <= d)
c++;
}
cout << c;
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], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 88 |
N, D = map(int, input().split())
count = 0
D_2 = D*D
for _ in range(N):
x, y = map(int, input().split())
d = x*x + y*y
print(d)
if d <= D_2:
count +=1
print(count) | N, D = map(int, input().split())
count = 0
D_2 = D*D
for _ in range(N):
x, y = map(int, input().split())
d = x*x + y*y
if d <= D_2:
count +=1
print(count) | [["-", 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, 25]] | 5 | 73 |
//============================================================================
// Name : template.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <... | //============================================================================
// Name : template.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 277 |
n,d=map(int,input().split())
cnt = 0
for _ in range(n):
x,y = map(int,input().split())
if(sqrt((x**2) + (y**2))<=d):
cnt +=1
print(cnt) | import math as m
n,d=map(int,input().split())
cnt = 0
for _ in range(n):
x,y = map(int,input().split())
if(m.sqrt((x**2) + (y**2))<=d):
cnt +=1
print(cnt) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 0, 656, 0, 596, 141, 704, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 596, 141, 704, 0, 272], ["+", 36, 36, 0, 656, 0, 596, 141, 704, 705, 22], ["+", 15, 23, 0, 666, 0, 652, 63, 319, 500, 22], ["+", 15, 23, 0, 666, 0, 652, 63, 319, 0, 131]] | 5 | 70 |
#include <algorithm>
#include <bits/stdc++.h>
#include <math.h>
#include <utility>
using namespace std;
#define ll long long;
long long mod = 1000000007;
bool isPrime(long long n) {
if (n <= 1)
return false;
for (long long i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
bool isP... | #include <algorithm>
#include <bits/stdc++.h>
#include <math.h>
#include <utility>
using namespace std;
#define ll long long;
long long mod = 1000000007;
bool isPrime(long long n) {
if (n <= 1)
return false;
for (long long i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
bool isP... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 466 |
/*WELCOME TO AYUSH RANJAN CODE'S*/
/*EVERY PROBLEM HAS A SOLUTION SOMETIMES ELEGENT OTHERWISE COMPLEX ELEGENCE*/
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int chkpower2(int x) { return (x && !(x & x - 1)); }
int n;
void solve() {
int n, d;
cin >> n >> d;
int a[n][2];
for (int i1 ... | /*WELCOME TO AYUSH RANJAN CODE'S*/
/*EVERY PROBLEM HAS A SOLUTION SOMETIMES ELEGENT OTHERWISE COMPLEX ELEGENCE*/
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int chkpower2(int x) { return (x && !(x & x - 1)); }
int n;
void solve() {
ll n, d;
cin >> n >> d;
ll a[n][2];
for (int i1 = ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 203 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, count = 0;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
int p, q;
cin >> p >> q;
if (p * p + q * q <= d * d)
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, count = 0;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
long long p, q;
cin >> p >> q;
if (p * p + q * q <= 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 | 77 |
n, d = input().split()
n = int(n)
d = int(d)
xy = [map(int, input().split()) for _ in range(5)]
x, y = [list(i) for i in zip(*xy)]
c = 0
for i in range(n):
if x[i]*x[i]+y[i]*y[i] <= d*d:
c +=1
print(c) | n, d = input().split()
n = int(n)
d = int(d)
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
c = 0
for i in range(n):
if x[i]*x[i]+y[i]*y[i] <= d*d:
c +=1
print(c) | [["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 22]] | 5 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
int ans = 0;
for (int i = 0; i > n; i++) {
long long a, b;
cin >> a >> b;
if ((a * a) + (b * b) <= d * d)
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; i++) {
long long a, b;
cin >> a >> b;
if ((a * a) + (b * b) <= d * d)
ans++;
}
cout << ans << endl;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int n, d;
cin >> n >> d;
int cnt = 0;
rep(i, n) {
int x, y;
cin >> x >> y;
double ans = (double)sqrt(x * x + y * y);
if (ans <= d)
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int n, d;
cin >> n >> d;
int cnt = 0;
rep(i, n) {
ll x, y;
cin >> x >> y;
double ans = (double)sqrt(x * x + y * y);
if (ans <= d)
... | [["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 99 |
import math
N,D=map(int,input().split())
i=0
for i in range(N):
x,y=map(int,input().split())
if math.sqrt(x**2+y**2)<=D:
i+=1
print(i) | import math
N,D=map(int,input().split())
j=0
for i in range(N):
x,y=map(int,input().split())
if math.sqrt(x**2+y**2)<=D:
j+=1
print(j) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAX = 2e9;
typedef pair<int, int> pi;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n, m;
cin >> n >> m;
int ans = 0;
for (int i = 0; i < n; i++) {
int a, b;
cin >> a >> b;
if (a * a + b * b <= m... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAX = 2e9;
typedef pair<int, int> pi;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll n, m;
cin >> n >> m;
int ans = 0;
for (int i = 0; i < n; i++) {
ll a, b;
cin >> a >> b;
if (a * a + b * b <= m *... | [["-", 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 | 119 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#define mem(x) memset(x, 0, sizeof(x))
#define sca(x) scanf("%d", &x)
#define scaa(x, y) scanf("%d%d", &x, &y)
#define prt(x) printf("%d\n", x)
#define ... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#define mem(x) memset(x, 0, sizeof(x))
#define sca(x) scanf("%d", &x)
#define scaa(x, y) scanf("%d%d", &x, &y)
#define prt(x) printf("%d\n", x)
#define ... | [["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]] | 1 | 229 |
I=lambda:list(map(int,input().split()))
n,d=I()
def ch(a,b):
return a**2+b**2
ans=0
for i in range(n):
x,y=I()
if ch(x,y)<=d:
ans+=1
print(ans)
| I=lambda:list(map(int,input().split()))
n,d=I()
def ch(a,b):
return a**2+b**2
ans=0
for i in range(n):
x,y=I()
if ch(x,y)<=d*d:
ans+=1
print(ans)
| [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 77 |
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();
d *= d;
int stack1;
int stack2;
int count = 0;
for (int i = 0; i < n; i++) {
stack1 = sc.nextInt();
stack2 = 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();
d *= d;
long stack1;
long stack2;
int count = 0;
for (int i = 0; i < n; i++) {
stack1 = sc.nextInt();
stack2... | [["-", 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 | 124 |
import java.lang.*;
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.nextInt();
int c = 0;
for (int i = 0; i < n; i++) {
int x = sc.nextInt();
int y = sc.nextInt();
double d1 ... | import java.lang.*;
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.nextInt();
int c = 0;
for (int i = 0; i < n; i++) {
long x = sc.nextInt();
long y = sc.nextInt();
double d... | [["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 137 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int> X(N), Y(N);
int count = 0;
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 << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
long long D;
cin >> N >> D;
vector<long long> X(N), Y(N);
int count = 0;
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++;
}
}
... | [["-", 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], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 126 |
#include <bits/stdc++.h>
#include <iostream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// ll n;
// cin>>n;
// if(n>=30){
// cout<<"Yes"<<endl;
// }
// else
// cout<<"No"<<endl... | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// ll n;
// cin>>n;
// if(n>=30){
// cout<<"Yes"<<endl;
// }
// else
// cout<<"No"<<endl... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 115 |
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#incl... | #include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#incl... | [["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 193 |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX32 = 2147483647;
const double PI = 3.14159265358979323846;
int main() {
int n, d, cnt = 0, x, y;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d) {
cnt++;
}
}
co... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int MAX32 = 2147483647;
const double PI = 3.14159265358979323846;
int main() {
long long n, d, cnt = 0, x, y;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d - sqrt(x * x + y * y) >= 0) {
cnt++;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", ... | 1 | 97 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <typename Arg1> void pn(Arg1 &&arg1) { cout << arg1 << "\n"; }
template <typename Arg1, typename... Args>
void pn(Arg1 &&arg1, Args &&...args) {
cout << arg1 << "\n";
pn(args...);
}
template <typename Arg1> void ps(Arg1 &&arg1) { cout <<... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <typename Arg1> void pn(Arg1 &&arg1) { cout << arg1 << "\n"; }
template <typename Arg1, typename... Args>
void pn(Arg1 &&arg1, Args &&...args) {
cout << arg1 << "\n";
pn(args...);
}
template <typename Arg1> void ps(Arg1 &&arg1) { cout <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 873 |
/*
@uthor: Amit Kumar
user -->GitHub: drviruses ; CodeChef: dr_virus_ ;
Codeforces,AtCoder,Hackerearth,Hakerrank: dr_virus;
*/
#include <bits/stdc++.h>
#include <chrono>
using namespace std;
using namespace std::chrono;
//#include <boost/multiprecision/cpp_int.hpp>
// namespace mp = boost::multiprecision;
//... | /*
@uthor: Amit Kumar
user -->GitHub: drviruses ; CodeChef: dr_virus_ ;
Codeforces,AtCoder,Hackerearth,Hakerrank: dr_virus;
*/
#include <bits/stdc++.h>
#include <chrono>
using namespace std;
using namespace std::chrono;
//#include <boost/multiprecision/cpp_int.hpp>
// namespace mp = boost::multiprecision;
//... | [["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78], ["-", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["-", 15, 339, 51, 16, 31, 74, 39, 77, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 31, 74, 0, 25], ["-", 15, 339, 51, 16, 31, 74, 51, 2, 63, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 8... | 1 | 397 |
N, D = map(int, input().split())
D = D ** 2
ans = 0
for i in range(N) :
x, y = map(int, input().split())
if x ** 2 + y ** 2 <= D ** 2 :
ans += 1
print(ans) | N, D = map(int, input().split())
D = D ** 2
ans = 0
for i in range(N) :
x, y = map(int, input().split())
if x ** 2 + y ** 2 <= D :
ans += 1
print(ans) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// input
int N, D;
cin >> N >> D;
long long E = D * D;
long long X[N], Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
// setup
int Total = 0;
for (int i = 0; i < N; i++) {
if (E >= X[i] * X[i] + Y[i] * Y[i])
Total++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
// input
long long N, D;
cin >> N >> D;
long long E = D * D;
long long X[N], Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
// setup
int Total = 0;
for (int i = 0; i < N; i++) {
if (E >= X[i] * X[i] + Y[i] * Y[i])
Total... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 126 |
#b
N, D = map(int, input().split())
x = [0] * N
y = [0] * N
for i in range(N):
x[i], y[i] = map(int, input().split())
ans=0
for i in range(N):
h=x[i]**2+y[i]**2
if h>=D**2:
ans+=1
print(ans) | #b
N, D = map(int, input().split())
x = [0] * N
y = [0] * N
for i in range(N):
x[i], y[i] = map(int, input().split())
ans=0
for i in range(N):
h=x[i]**2+y[i]**2
if h<=D**2:
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 | 101 |
#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++) {
if (sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i)) <= D) {
ans++;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<long long> A(N);
vector<long long> 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++) {
if (sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i)) <= D) {
... | [["-", 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() {
long long int n;
long long int d;
cin >> n >> d;
long long int ans = 0;
long long int x;
long long int y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d * d <= x * x + y * y)
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n;
long long int d;
cin >> n >> d;
long long int ans = 0;
long long int x;
long long int y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d * d >= x * x + y * y)
ans++;
}
cout << ans << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
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 (sqrt(x * x + y * y) <= d)
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll n, d;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; i++) {
ll x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
ans++;
}
cout << ans << endl;
} | [["-", 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 | 85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.