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 |
|---|---|---|---|---|
#define rep(i, n) for (int i = 0; i < n; i++)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n, d, x, y, co = 0;
cin >> n >> d;
rep(i, n) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
co++;
}
cout << co << endl;
} | #define rep(i, n) for (int i = 0; i < n; i++)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, d, x, y, co = 0;
cin >> n >> d;
rep(i, n) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
co++;
}
cout << co << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
const int mx = 1e6 + 11;
const double PI = acos(-1);
#define MOD 1000000007
#define nl '\n'
#define pb push_back
#define F first
#define S second
#define I... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
const int mx = 1e6 + 11;
const double PI = acos(-1);
#define MOD 1000000007
#define nl '\n'
#define pb push_back
#define F first
#define S second
#define I... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 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], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0... | 1 | 286 |
#include <cassert>
#include <iostream>
#include <stdexcept>
#include <vector>
using namespace std;
int main() {
long long N, D;
cin >> N >> D;
vector<int> X(N), Y(N);
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
long long d2;
int ans = 0;
for (int i = 0; i < N; i++) {
d2 = X[i] * X[i] + Y[i... | #include <cassert>
#include <iostream>
#include <stdexcept>
#include <vector>
using namespace std;
int main() {
long long N, D;
cin >> N >> D;
vector<long long> X(N), Y(N);
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
long long d2;
int ans = 0;
for (int i = 0; i < N; i++) {
d2 = X[i] * X[i]... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 137 |
#include <iostream>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
int x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d * d >= x * x + y * y)
ans++;
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long ans = 0;
long long x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (d * d >= x * x + y * y)
ans++;
}
cout << ans << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 81 |
#include <bits/stdc++.h>
using namespace std;
#define Wingardium_Leviosa \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define ll l... | #include <bits/stdc++.h>
using namespace std;
#define Wingardium_Leviosa \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define ll l... | [["-", 8, 9, 0, 52, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 0, 21], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 363 |
#pragma GCC optimize("Ofast")
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#define rep(i, n) for (ll i = 0; ... | #pragma GCC optimize("Ofast")
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#define rep(i, n) for (ll i = 0; ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 48], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22]] | 1 | 184 |
// By: Luogu@rui_er(122461)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n, d, tot;
double dis(ll x, ll y) { return sqrt(1.0 * x * x + 1.0 * y * y); }
int main() {
scanf("%lld%lld", &n, &d);
for (ll i = 1; i <= n; i++) {
ll x, y;
scanf("%lld%lld", &x, &y);
if (d - dis(x, y) <... | // By: Luogu@rui_er(122461)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n, d, tot;
double dis(ll x, ll y) { return sqrt(1.0 * x * x + 1.0 * y * y); }
int main() {
scanf("%lld%lld", &n, &d);
for (ll i = 1; i <= n; i++) {
ll x, y;
scanf("%lld%lld", &x, &y);
if (dis(x, y) - d <... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 130 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define INF (ll)1e18 + 4
#define md (ll)1e9 + 7
#define mx 10000000
#define mk make_pair
#define __builtin_popcountll(x) one(x)
#define pi pair<int, int>
#define ss second
#define ff first
#define pb emplace_back
#define all(s... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define INF (ll)1e18 + 4
#define md (ll)1e9 + 7
#define mx 10000000
#define mk make_pair
#define __builtin_popcountll(x) one(x)
#define pi pair<int, int>
#define ss second
#define ff first
#define pb emplace_back
#define all(s... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 268 |
N, D = map(int, input().split())
XY = [list(map(int, input().split())) for _ in range()]
print(sum(x**2 + y**2 <= D**2 for x, y in XY)) | N, D = map(int, input().split())
XY = [list(map(int, input().split())) for _ in range(N)]
print(sum(x**2 + y**2 <= D**2 for x, y in XY)) | [["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 22]] | 5 | 64 |
#include <bits/stdc++.h>
using namespace std;
long long n, d, l1, l2, ans;
int main() {
cin >> n >> d;
while (n--) {
cin >> l1 >> l2;
if (sqrt(l1 * l1 + l2 * l2) >= d) {
ans++;
}
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
long long n, d, l1, l2, ans;
int main() {
cin >> n >> d;
while (n--) {
cin >> l1 >> l2;
if (sqrt(l1 * l1 + l2 * l2) <= d) {
ans++;
}
}
cout << ans;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 67 |
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll x, d, y, n, count = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if ((x * x) + (y * y) <= d * d)
count++;
}
cout << count << '\n';
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 80 |
import math
n,d=map(int,input().split())
c=0
for i in range(n):
x,y=map(int,input().split())
res=math.sqrt(x**2+y**2)
if(res>=d):
c+=1
print(c) | # cook your dish here
import math
n,d=map(int,input().split())
c=0
for i in range(n):
x,y=map(int,input().split())
res=math.sqrt(x**2+y**2)
if(res<=d):
c+=1
print(c)
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int> X(N), Y(N);
for (int i = 0; i < N; i++) {
cin >> X.at(i) >> Y.at(i);
}
int C;
C = 0;
for (int i = 0; i < N; i++) {
if (X.at(i) * X.at(i) + Y.at(i) * Y.at(i) <= D * D) {
C = C + 1;
} else... | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t N, D;
cin >> N >> D;
vector<int64_t> X(N), Y(N);
for (int i = 0; i < N; i++) {
cin >> X.at(i) >> Y.at(i);
}
int C;
C = 0;
for (int i = 0; i < N; i++) {
if (X.at(i) * X.at(i) + Y.at(i) * Y.at(i) <= D * D) {
C = C + 1;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]] | 1 | 143 |
import math
n,d=map(int(input().split()))
c=0
for i in range(n):
a,b=map(int(input().split()))
r=math.sqrt(a**2+b**2)
if r<=d:
c+=1
print(c) | import math
n,d=map(int,input().split())
c=0
for i in range(n):
a,b=map(int,input().split())
r=math.sqrt(a**2+b**2)
if r<=d:
c+=1
print(c) | [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 73 |
#include <bits/stdc++.h>
#define pir pair<int, int>
#define qmin(x, y) (x = min(x, y))
#define qmax(x, y) (x = max(x, y))
#define rsort(x, y) sort(x, y), reverse(x, y)
#define fr first
#define se second
using namespace std;
typedef long long ll;
const int Maxn = 2100000;
const int inf = 0x3f3f3f3f;
int n, d, ans, x, y... | #include <bits/stdc++.h>
#define pir pair<int, int>
#define qmin(x, y) (x = min(x, y))
#define qmax(x, y) (x = max(x, y))
#define rsort(x, y) sort(x, y), reverse(x, y)
#define fr first
#define se second
using namespace std;
typedef long long ll;
const int Maxn = 2100000;
const int inf = 0x3f3f3f3f;
int n, d, ans, x, y... | [["+", 0, 43, 49, 50, 51, 16, 31, 16, 31, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 48]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
ll gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; } //最大公約数
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; } //最小公倍数
using Graph = vector<vector<int>>;
ll inf = 300000000000000000... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
ll gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; } //最大公約数
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; } //最小公倍数
using Graph = vector<vector<int>>;
ll inf = 300000000000000000... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 161 |
#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>;
int main() {
int n, d;
cin >> n >> d;
int a[n][2];
rep(i, n) cin >> a[i][0] >> a[i][1];
int ans = 0;
rep(i, n) {
if (sqrt(a[i][0] * a[i][0] + a[i][1] * a[i][1]) ... | #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>;
int main() {
ll n, d;
cin >> n >> d;
ll a[n][2];
rep(i, n) cin >> a[i][0] >> a[i][1];
ll ans = 0;
rep(i, n) {
if (sqrt(a[i][0] * a[i][0] + a[i][1] * a[i][1]) <= ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 145 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m, count = 0;
cin >> n >> m;
while (n--) {
int a, b;
cin >> a >> b;
float ans = sqrt((a * a) + (b * b));
if (ans <= m)
count++;
}
cout << count << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m, count = 0;
cin >> n >> m;
while (n--) {
double a, b;
cin >> a >> b;
double ans = sqrt((a * a) + (b * b));
if (ans <= m)
count++;
}
cout << count << endl;
return 0;
}
| [["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40]] | 1 | 81 |
import datetime
import string
import re
import math
inp = list(map(int, input().split()))
N=int(inp[0])
D=int(inp[1])
alist = [input().split() for i in range(N)]
count = 0
for i in range(N):
if int(alist[i][0])^2 + int(alist[i][1])^2 <= D^2: count += 1
print(count) | import datetime
import string
import re
import math
inp = list(map(int, input().split()))
N=int(inp[0])
D=int(inp[1])
alist = [input().split() for i in range(N)]
count = 0
for i in range(N):
if int(alist[i][0])**2 + int(alist[i][1])**2 <= D**2: count += 1
print(count) | [["-", 0, 57, 15, 666, 0, 657, 31, 657, 17, 140], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 17, 578], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 140], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 17, 578], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578]] | 5 | 110 |
n,d = gets.strip.split.map(&:to_i)
ans = 0
n.times do
x,y = gets.strip.split.map(&:to_i)
ans += 1 if d * d <= x * x + y * y
end
p ans
| n,d = gets.strip.split.map(&:to_i)
ans = 0
n.times do
x,y = gets.strip.split.map(&:to_i)
ans += 1 if d * d >= x * x + y * y
end
p ans
| [["-", 196, 737, 8, 736, 0, 751, 15, 738, 17, 19], ["+", 196, 737, 8, 736, 0, 751, 15, 738, 17, 20]] | 4 | 55 |
import math
n,d = map(int,input().split())
c = 0
for i in range(n):
x,y = map(int,input().split())
D = math.sqrt((x*x)+(y*y))
if(int(D)<=d):
c+=1
print(c)
| import math
n,d = map(int,input().split())
c = 0
for i in range(n):
x,y = map(int,input().split())
D = math.sqrt((x*x)+(y*y))
if(D <=d):
c+=1
print(c)
| [["-", 0, 57, 15, 23, 0, 666, 0, 652, 63, 22], ["-", 15, 23, 0, 666, 0, 652, 3, 4, 0, 24], ["-", 15, 23, 0, 666, 0, 652, 3, 4, 0, 25]] | 5 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, x, y;
cin >> n >> d;
long long int a, b, c, e;
a = d * d;
int count = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
b = x * x;
c = y * y;
e = b + c;
if (e <= a) {
count++;
}
}
cout << count;
return 0... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, x, y;
cin >> n >> d;
long long int a, b, c, e;
a = d * d;
// cout<<a<<endl;
int count = 0;
for (long long int i = 0; i < n; i++) {
cin >> x >> y;
b = x * x;
c = y * y;
e = b + c;
// cout<<b<<" "<<c<<" "<<e... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96], ["+", 36, 36, 36, 36, 0, 30, 0, 42, 0, 35]] | 1 | 107 |
import math
n,d=map(int,input().split())
ans=0
for i in range(1,n+1):
x,y=map(int,input().split())
if math.sqrt((x**2+y**2)*10**5)<=d*10**5:
ans+=1
print(ans) | import math
n,d=map(int,input().split())
ans=0
for i in range(1,n+1):
x,y=map(int,input().split())
if math.sqrt((x**2+y**2)*10**6)<=d*10**3:
ans+=1
print(ans) | [["-", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 12, 612]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
#define loop(i, m, n) for (int i = m; i < n; i++)
#define rloop(i, m, n) for (int i = m; i >= n; i--)
#define mod 1000000007
#define mp(x, y) make_pair(x, y)
#define Push(x) push_back(x)
#define F first
#define S second
typedef vector<int> vi;
typedef pair<int, int> pi;
t... | #include <bits/stdc++.h>
using namespace std;
#define loop(i, m, n) for (int i = m; i < n; i++)
#define rloop(i, m, n) for (int i = m; i >= n; i--)
#define mod 1000000007
#define mp(x, y) make_pair(x, y)
#define Push(x) push_back(x)
#define F first
#define S second
typedef vector<int> vi;
typedef pair<int, int> pi;
t... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 195 |
#In[]:
import math
n, d = map(int,input().split())
x = [list(map(int,input().split())) for _ in range(n)]
ans = 0
for i in range(n):
num = (x[i][0])*(x[i][0]) * (x[i][1])*(x[i][1])
root_num = math.sqrt(num)
if num >= d:
ans += 1
print(ans) | #In[]:
import math
n, d = map(int,input().split())
x = [list(map(int,input().split())) for _ in range(n)]
ans = 0
for i in range(n):
num = (x[i][0])*(x[i][0]) + (x[i][1])*(x[i][1])
root_num = math.sqrt(num)
if root_num <= d:
ans += 1
print(ans)
| [["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 117 |
#include <iostream>
#define pb push_back
#define ll long long
#define mp std::make_pair
#include <cmath>
int main() {
int n, d;
std::cin >> n >> d;
int t = 0;
ll x[n], y[n];
for (int i = 0; i < n; i++) {
std::cin >> x[i] >> y[i];
}
for (int i = 0; i < n; i++) {
int res = (x[i] * x[i]) + (y[i] * y... | #include <iostream>
#define pb push_back
#define ll long long
#define mp std::make_pair
#include <cmath>
int main() {
int n, d;
std::cin >> n >> d;
int t = 0;
double x[n], y[n];
for (int i = 0; i < n; i++) {
std::cin >> x[i] >> y[i];
}
for (int i = 0; i < n; i++) {
double res = (x[i] * x[i]) + (y... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 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], ["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 149 |
n = list(map(int, input().split()))
distance = n[1]
points = [list(map(int, input().split())) for i in range(n[0])]
ans = 0
for i in points:
x = i[0]
y = i[1]
d = math.sqrt(x**2 + y**2)
if d <= distance:
ans += 1
print(ans) | import math
n = list(map(int, input().split()))
distance = n[1]
points = [list(map(int, input().split())) for i in range(n[0])]
ans = 0
for i in points:
x = i[0]
y = i[1]
d = math.sqrt(x**2 + y**2)
if d <= distance:
ans += 1
print(ans) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 98 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, count = 0;
cin >> n >> d;
while (n--) {
int x, y;
cin >> x >> y;
if (sqrt((x * x) + (y * y)) <= d)
count++;
}
cout << count;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, count = 0;
cin >> n >> d;
while (n--) {
long long int x, y;
cin >> x >> y;
if (sqrt((x * x) + (y * y)) <= d)
count++;
}
cout << count;
return 0;
}
/*
B - Distance /
Time Limit: 2 sec / Memory Limit: 1024 MB
Score :
20... | [["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 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 count = 0;
while (n-- > 0) {
int a = sc.nextInt();
int b = sc.nextInt();
double ans = Math.sqrt(a * a + b * b);
... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long d = sc.nextLong();
int count = 0;
while (n-- > 0) {
long a = sc.nextLong();
long b = sc.nextLong();
double ans = Math.sqrt(a * a + b *... | [["-", 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], ["-", 0, 52, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 52, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
double x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) < d)
ans++;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
double x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= 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 | 81 |
import sys
import numpy as np
from math import ceil as C, floor as F, sqrt
from collections import defaultdict as D
from functools import reduce as R
ALP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alp = 'abcdefghijklmnopqrstuvwxyz'
def _X(): return sys.stdin.readline().rstrip().split(' ')
def _S(ss): return tuple(ss) if len(ss) >... | import sys
import numpy as np
from math import ceil as C, floor as F, sqrt
from collections import defaultdict as D
from functools import reduce as R
ALP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alp = 'abcdefghijklmnopqrstuvwxyz'
def _X(): return sys.stdin.readline().rstrip().split(' ')
def _S(ss): return tuple(ss) if len(ss) ... | [["-", 64, 196, 0, 1, 0, 662, 12, 666, 667, 18], ["+", 64, 196, 0, 1, 0, 662, 12, 666, 667, 19]] | 5 | 281 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader =
new InputStreamReader(System.in, StandardCharsets.UTF_8);
B... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader =
new InputStreamReader(System.in, StandardCharsets.UTF_8);
B... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 511, 0, 512]] | 3 | 210 |
import math
count = 0
n, d = map(int, input().split())
for _ in range(n):
x1, x2 = map(int, input().split())
x = math.sqrt(x1 ** 2 + x2 ** 2)
if x < d:
count += 1
print(count) | import math
count = 0
n, d = map(int, input().split())
for _ in range(n):
x1, x2 = map(int, input().split())
x = math.sqrt(x1 ** 2 + x2 ** 2)
if x <= d:
count += 1
print(count) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 71 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int N, D2, x, y;
int i;
int result;
char buf[256], *ch;
fgets(buf, sizeof(buf), stdin);
ch = strtok(buf, " ");
N = atoi(ch);
ch = strtok(NULL, " ");
D2 = atoi(ch);
D2 = D2 * D2;
result = 0;
for (i = 0; i < N; i += 1)... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int N;
double D2, x, y;
int i;
int result;
char buf[256], *ch;
fgets(buf, sizeof(buf), stdin);
ch = strtok(buf, " ");
N = atoi(ch);
ch = strtok(NULL, " ");
D2 = atof(ch);
D2 = D2 * D2;
result = 0;
for (i = 0; i < N... | [["-", 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, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]] | 0 | 190 |
n,d=input().split()
a=[]
for x in range(int(n)):
x,y=input().split()
if (((int(x)**2)+(int(y)**2))**0.5)>=float(int(d)):
a.append(1)
print(len(a))
| n,d=input().split()
a=[]
for x in range(int(n)):
x,y=input().split()
if (((int(x)**2)+(int(y)**2))**0.5)<=float(int(d)):
a.append(1)
print(len(a))
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 83 |
#include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n, d;
int cnt = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
double dist = 0;
int x, y;
cin >> x >> y;
dist = sqrt(x * x + y * y);
if (dist <= d)
cnt++;
}
cout << cnt;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n, d;
int cnt = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
double dist = 0;
double x, y;
cin >> x >> y;
dist = sqrt(x * x + y * y);
if (dist <= d)
cnt++;
}
cout << cnt;
return 0;
} | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 92 |
n, d = list(map(int, input().strip()))
cnt = 0
d2 = d**2
x, y = [], []
for i in range(n):
tx, ty = list(map(int, input().strip()))
x.append(tx)
y.append(ty)
for i in range(n):
if(x[i]**2 + y[i]**2 <= d2):
cnt += 1
print(cnt) | n, d = list(map(int, input().split()))
cnt = 0
d2 = d**2
x, y = [], []
for i in range(n):
tx, ty = list(map(int, input().split()))
x.append(tx)
y.append(ty)
for i in range(n):
if(x[i]**2 + y[i]**2 <= d2):
cnt += 1
print(cnt) | [["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22]] | 5 | 109 |
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define INF long long int(1e18 + 1)
#define rep(i, n, m) for (int i = n; i < m; i++)
u... | #include <algorithm>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define INF long long int(1e18 + 1)
#define rep(i, n, m) for (int i = n; i < m; i++)
u... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, count = 0;
cin >> n >> d;
while (n--) {
int a, b;
cin >> a >> b;
long long int p = sqrt(pow(a, 2) + pow(b, 2));
if (p <= d)
count++;
}
cout << count;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, count = 0;
cin >> n >> d;
while (n--) {
int a, b;
cin >> a >> b;
double p = sqrt(pow(a, 2) + pow(b, 2));
if (p <= d)
count++;
}
cout << count;
} | [["-", 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 | 82 |
#include <bits/stdc++.h>
using namespace std;
long double distance(int x, int y) {
long double ans = sqrt(x * x + y * y);
return ans;
}
void solve() {
int count = 0;
int n, d;
cin >> n >> d;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (distance(x, y) <= d)
count++;
}
cout... | #include <bits/stdc++.h>
using namespace std;
long double distance(long x, long y) {
long double ans = sqrt(x * x + y * y);
return ans;
}
void solve() {
int count = 0;
long n, d;
cin >> n >> d;
for (int i = 0; i < n; i++) {
long x, y;
cin >> x >> y;
if (distance(x, y) <= d)
count++;
}
... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96], ["-", 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 | 115 |
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll n, k;
ll idex = 0;
cin >> n >> k;
while (n--) {
ll x, y;
cin >> x >> y;
if (x * x + y * y < k * k)
idex++;
}
cout << idex << endl;
return 0;
} | #include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll n, k;
ll idex = 0;
cin >> n >> k;
while (n--) {
ll x, y;
cin >> x >> y;
if (x * x + y * y <= k * k)
idex++;
}
cout << idex << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 77 |
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
int n;
int d;
cin >> n;
cin >> d;
int c;
while (n--) {
int x;
int y;
cin >> x;
cin >> y;
double a = sqrt((x * x) + (y * y));
if (a <= d) {
c++;
}
}
cout << c;
}
| #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
int n;
double d;
cin >> n;
cin >> d;
int c = 0;
while (n--) {
long x;
long y;
cin >> x;
cin >> y;
double a = sqrt((x * x) + (y * y));
if (a <= d) {
c++;
}
}
cout << c;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 85 |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int d = in.nextInt();
int count = 0;
while (n > 0) {
n--;
int x = in.nextInt();
int y = in.nextInt();
if (x * x + y * y <= d * d)
... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
long d = in.nextLong();
int count = 0;
while (n > 0) {
n--;
long x = in.nextLong();
long y = in.nextLong();
if (x * x + y * y <= d * d... | [["-", 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], ["-", 0, 52, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 52, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 113 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int> vec(N);
int X, Y;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
vec.at(i) = X * X + Y * Y;
}
int counter = 0;
for (int i = 0; i < N; i++) {
if (vec.at(i) <= D * D)
counter++;
}
cout << c... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, D;
cin >> N >> D;
vector<long long> vec(N);
long long X, Y;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
vec.at(i) = X * X + Y * Y;
}
int counter = 0;
for (int i = 0; i < N; i++) {
if (vec.at(i) <= D * D)
counter+... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]] | 1 | 117 |
#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>;
int main(int argc, const char *argv[]) {
cin.tie(0);
ios::sync_with_stdio(false);
int n, d;
cin >> n >> d;
int x[n], y[n];
rep(i, n) cin >> x[i] >> y[i];
int cnt = ... | #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>;
int main(int argc, const char *argv[]) {
cin.tie(0);
ios::sync_with_stdio(false);
int n, d;
cin >> n >> d;
double x[n], y[n];
rep(i, n) cin >> x[i] >> y[i];
int cnt... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 25], ["-", 3, 4, 0, 16, 12, 2, 3, 4, 0, 25]] | 1 | 154 |
N, D = map(int,input().split())
data = [list(map(int,input().split())) for _ in range(N)]
#print(data)
count = 0
for d in data:
if d[0]*d[0] + d[1]*d[1] >= D*D:
count += 1
print(count)
#print(N,D) | N, D = map(int,input().split())
data = [list(map(int,input().split())) for _ in range(N)]
#print(data)
count = 0
for d in data:
if d[0]*d[0] + d[1]*d[1] <= D*D:
count += 1
print(count)
#print(N,D) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 84 |
a,b = input().split()
a = int(a)
b = int(b)
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
ans = 0
for i in range(a):
if (x[i]**2 + y[i]**2)**0.5 >= b:
ans +=1
else:
continue
print(ans) |
a,b = input().split()
a = int(a)
b = int(b)
xy = [map(int, input().split()) for _ in range(a)]
x, y = [list(i) for i in zip(*xy)]
ans = 0
for i in range(a):
if (x[i]**2 + y[i]**2)**0.5 <= b:
ans +=1
else:
continue
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 106 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b - 1; i >= a; i--)
#define pb push_back
#define vi vector<int>
#define vl vector<ll>
#define ml map<ll, ll>
#define pll pair<ll, ll>
int main() {
int n;
ll d;
cin ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fi(i, a, b) for (ll i = b - 1; i >= a; i--)
#define pb push_back
#define vi vector<int>
#define vl vector<ll>
#define ml map<ll, ll>
#define pll pair<ll, ll>
int main() {
int n;
ll d;
cin ... | [["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 51, 2, 3, 4, 0, 2, 3, 4, 0, 25]] | 1 | 133 |
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll n;
long double d;
cin >> n >> d;
long double tmp;
ll x, y;
int c = 0;
for (int i = 1; i < n; i++) {
cin >> x >> y;
tmp = sqrt(x * x + y * y);
if (tmp <= d) {
c++;
}
}
cout << ... | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll n;
long double d;
cin >> n >> d;
long double tmp;
ll x, y;
int c = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
tmp = sqrt(x * x + y * y);
if (tmp <= d) {
c++;
}
}
cout << ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 94 |
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
fro... | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial, ceil, floor
fro... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 325 |
//
// Created by admin on 2020/8/2.
//
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, d, x, y, ans;
signed main() {
scanf("%lldlld", &n, &d);
d = labs(d * d);
for (int i = 1; i <= n; i++) {
scanf("%lld%lld", &x, &y);
x = labs(x * x);
y = labs(y * y);
if (x + y <= d)
... | //
// Created by admin on 2020/8/2.
//
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, d, x, y, ans;
signed main() {
scanf("%lld%lld", &n, &d);
d = labs(d * d);
for (int i = 1; i <= n; i++) {
scanf("%lld%lld", &x, &y);
x = labs(x * x);
y = labs(y * y);
if (x + y <= d)
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 122 |
import numpy
N, D = map(int, input().split())
X = [0] * N
Y = [0] * N
count = 0
for i in range(N):
X[i], Y[i] = map(int, input().split())
if numpy.sqrt(X[i]**2 + Y[i]**2):
count += 1
print(count) | import numpy
N, D = map(int, input().split())
X = [0] * N
Y = [0] * N
count = 0
for i in range(N):
X[i], Y[i] = map(int, input().split())
if numpy.sqrt(X[i]**2 + Y[i]**2) <= D:
count += 1
print(count) | [["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 92 |
#include <bits/stdc++.h>
using namespace std;
//|\\---------------//|\\
//|\\RISE FROM ASHES//|\\
//|\\---------------//|\\
int main() {
int n, d;
cin >> n >> d;
int count = 0;
while (n--) {
int a, b;
cin >> a >> b;
if (sqrt(abs(a * a) + abs(b * b)) <= d) {
count++;
}
}
cout << coun... | #include <bits/stdc++.h>
using namespace std;
//|\\---------------//|\\
//|\\RISE FROM ASHES//|\\
//|\\---------------//|\\
int main() {
int n, d;
cin >> n >> d;
int count = 0;
while (n--) {
int a, b;
cin >> a >> b;
if (sqrt(pow(a, 2) + pow(b, 2)) <= d) {
count++;
}
}
cout << count;... | [["-", 31, 2, 3, 4, 0, 16, 31, 2, 63, 22], ["+", 31, 2, 3, 4, 0, 16, 31, 2, 63, 22], ["-", 0, 16, 31, 2, 3, 4, 0, 16, 31, 22], ["-", 0, 16, 31, 2, 3, 4, 0, 16, 17, 48], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 21], ["+", 3, 4, 0, 16, 31, 2, 3, 4, 0, 13], ["-", 31, 2, 3, 4, 0, 16, 12, 2, 63, 22], ["+", 31, 2, 3, 4, 0, 16, 12,... | 1 | 80 |
n, d = map(int, input().split())
xy = []
for i in range(n):
xy.append(list(map(int,input().split())))
c = 0
for i in range(n):
if xy[i][0] * xy[i][0] + xy[i][1] * xy[i][1] < d * d:
c += 1
print(c)
| n, d = map(int, input().split())
xy = []
for i in range(n):
xy.append(list(map(int,input().split())))
c = 0
for i in range(n):
if xy[i][0] * xy[i][0] + xy[i][1] * xy[i][1] <= d * d:
c += 1
print(c)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 103 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, m, c = 0, i;
cin >> n >> m;
for (i = 0; i < n; i++) {
long long int a, b, x, y;
cin >> a >> b;
x = a * a + b * b;
y = sqrt(x);
if (y <= m)
c++;
}
cout << c;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, m, c = 0, i;
cin >> n >> m;
for (i = 0; i < n; i++) {
long long int a, b, x;
double y;
cin >> a >> b;
x = a * a + b * b;
y = sqrt(x);
if (y <= m)
c++;
}
cout << c;
}
| [["-", 8, 9, 0, 7, 8, 9, 0, 43, 0, 21], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 0, 35], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long t, d;
cin >> t >> d;
int c = 0;
while (t--) {
long long x, y;
cin >> x >> y;
if ((x * x) + (y * y) == d * d) {
c++;
}
}
cout << c << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long t, d;
cin >> t >> d;
int c = 0;
while (t--) {
long long x, y;
cin >> x >> y;
if ((x * x) + (y * y) <= d * d) {
c++;
}
}
cout << c << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 77 |
N, D = [int(i) for i in input().split()]
print(N, D)
D2 = D ** 2
ans = 0
for i in range(N):
X, Y = [int(i) for i in input().split()]
if X**2 + Y**2 <= D2:
ans += 1
print(ans)
| N, D = [int(i) for i in input().split()]
D2 = D ** 2
ans = 0
for i in range(N):
X, Y = [int(i) for i in input().split()]
if X**2 + Y**2 <= D2:
ans += 1
print(ans)
| [["-", 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, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 80 |
import sys
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))
ans = 0
n,d = Mi()
d = d*d
for i in range(n):
x,y = Mi()
if d > x**2+y**2:
ans += 1
print(ans) | import sys
def Ii():return int(sys.stdin.readline())
def Mi():return map(int,sys.stdin.readline().split())
def Li():return list(map(int,sys.stdin.readline().split()))
ans = 0
n,d = Mi()
d = d*d
for i in range(n):
x,y = Mi()
if d >= x**2+y**2:
ans += 1
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 113 |
#include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = 1; i <= (n); i++)
#define drep(i, n) for (int i = (n)-1; i >= 0; i--)
#define srep(i, s, t) for (int i = s; i < t; i++)
#define rng(a) a.begin(), a.end()
using ll = long long;
using na... | #include <cmath>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = 1; i <= (n); i++)
#define drep(i, n) for (int i = (n)-1; i >= 0; i--)
#define srep(i, s, t) for (int i = s; i < t; i++)
#define rng(a) a.begin(), a.end()
using ll = long long;
using na... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve() {
int n, x;
cin >> n >> x;
x *= x;
int ans = 0;
for (int i = 0; i < n; ++i) {
int a, b;
cin >> a >> b;
if (a * a + b * b < x)
++ans;
}
cout << ans;
}
signed main() {
ios_base::sync_with_stdio(false);
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
void solve() {
int n, x;
cin >> n >> x;
x *= x;
int ans = 0;
for (int i = 0; i < n; ++i) {
int a, b;
cin >> a >> b;
if (a * a + b * b <= x)
++ans;
}
cout << ans;
}
signed main() {
ios_base::sync_with_stdio(false);
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 115 |
#include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define pf(n) printf("%d\n", n)
#define pff(a, b) printf("%d %d\n", a, b);
typedef lo... | #include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define pf(n) printf("%d\n", n)
#define pff(a, b) printf("%d %d\n", a, b);
typedef lo... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 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]] | 1 | 150 |
import math
n,d=map(int,input().split())
l==[list(map(int,input().split())) for _ in range(n)]
c=0
for i in range(n):
x=l[i][0]
y=l[i][1]
k=math.sqrt(x**2+y**2)
if k<=d:c+=1
print(c) | import math
n,d=map(int,input().split())
l=[list(map(int,input().split())) for _ in range(n)]
c=0
for i in range(n):
x=l[i][0]
y=l[i][1]
k=math.sqrt(x**2+y**2)
if k<=d:c+=1
print(c) | [["-", 36, 36, 0, 656, 0, 1, 0, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]] | 5 | 99 |
#include <bits/stdc++.h>
#define rep(i, s, n) for (int i = s; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
ll d;
cin >> n >> d;
d *= d;
int ans = 0;
rep(i, 0, n) {
ll x, y;
cin >> x >> y;
ll r = x * x + y * y;
if (r < d)
ans++;... | #include <bits/stdc++.h>
#define rep(i, s, n) for (int i = s; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
ll d;
cin >> n >> d;
d *= d;
int ans = 0;
rep(i, 0, n) {
ll x, y;
cin >> x >> y;
ll r = x * x + y * y;
if (r <= d)
ans++... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 110 |
#include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
string item;
for (char ch : s) {
if (ch == delim) {
if (!item.empty()) {
elems.push_back(item);
}
item.cl... | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
string item;
for (char ch : s) {
if (ch == delim) {
if (!item.empty()) {
elems.push_back(item);
}
item.cl... | [["-", 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 | 895 |
n, d = map(int, input().split())
cnt = 0
for i in range(n):
x, y = map(int, input().split())
if d * d > x * x + y * y:
cnt += 1
print(cnt) | n, d = map(int, input().split())
cnt = 0
for i in range(n):
x, y = map(int, input().split())
if d * d >= x * x + y * y:
cnt += 1
print(cnt) | [["-", 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>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= D * D)
count++;
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t N, D;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
int64_t x, y;
cin >> x >> y;
if (x * x + y * y <= D * D)
count++;
}
cout << count << 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 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
long long ans = 0;
long long x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long ans = 0;
long long x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 80 |
n,d=map(int,input().split())
cnt=0
for _ in range(n):
x,y=map(int,input().split())
if (x**2+y**2)>=d**2:
cnt+=1
print(cnt) | n,d=map(int,input().split())
cnt=0
for _ in range(n):
x,y=map(int,input().split())
if (x**2+y**2)<=d**2:
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 | 65 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, d, x, y, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt((double)(x * x) + (double)(y * y)) <= d)
ans++;
}
cout << ans << endl;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, d, x, y, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt((double)x * x + (double)y * y) <= d)
ans++;
}
cout << ans << endl;
return 0;
}
| [["-", 3, 4, 0, 16, 31, 74, 51, 23, 0, 24], ["-", 3, 4, 0, 16, 31, 74, 51, 23, 0, 25], ["-", 3, 4, 0, 16, 12, 74, 51, 23, 0, 24], ["-", 3, 4, 0, 16, 12, 74, 51, 23, 0, 25]] | 1 | 92 |
#include <bits/stdc++.h>
#include <iostream>
#define int long long
#define mod 1000000007
#define pb(x) push_back(x)
#define gcd(a, b) __gcd(a, b)
#define all(v) v.begin(), v.end()
#define lcm(a, b) (a * b) / gcd(a, b)
#define bits(x) __builtin_popcountll(x)
#define fast ... | #include <bits/stdc++.h>
#include <iostream>
#define int long long
#define mod 1000000007
#define pb(x) push_back(x)
#define gcd(a, b) __gcd(a, b)
#define all(v) v.begin(), v.end()
#define lcm(a, b) (a * b) / gcd(a, b)
#define bits(x) __builtin_popcountll(x)
#define fast ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define FAST() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define FAST() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 95 |
#include <bits/stdc++.h>
#define mod 1000000007
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define re... | #include <bits/stdc++.h>
#define mod 1000000007
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define re... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78]] | 1 | 159 |
N,D = map(int, input().split())
cnt =0
for _ in range(N):
x,y = map(int, input().split())
if D**2 <= (x**2 + y**2):
cnt += 1
print(cnt)
| # B
N,D = map(int, input().split())
cnt =0
for _ in range(N):
x,y = map(int, input().split())
if D**2 >= (x**2 + y**2):
cnt += 1
print(cnt)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const long double PI = (acos(-1));
const long long MOD = 1000000007;
struct Edge {
long long to;
long long cost;
};
using Graph = vector<vector<Edge>>;
using P = pair<ll, ll>;
const long long INF = 1LL << 60;
#defin... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const long double PI = (acos(-1));
const long long MOD = 1000000007;
struct Edge {
long long to;
long long cost;
};
using Graph = vector<vector<Edge>>;
using P = pair<ll, ll>;
const long long INF = 1LL << 60;
#defin... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 1,650 |
#include <bits/stdc++.h>
typedef long long ll;
#define M 1000000007
#define PI 3.141592653589793238462643383279502884197169
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; ++i) {
int a, b;
cin >> a >> b;
if (sqrt(a * a + b * b) <= d)
++ans;
}... | #include <bits/stdc++.h>
typedef long long ll;
#define M 1000000007
#define PI 3.141592653589793238462643383279502884197169
using namespace std;
int main() {
double n, d;
cin >> n >> d;
int ans = 0;
for (int i = 0; i < n; ++i) {
double a, b;
cin >> a >> b;
if (sqrt(a * a + b * b) <= d)
++an... | [["-", 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 | 91 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
while (n--) {
int a, b;
cin >> a >> b;
if ((a * a + b * b) <= d * d)
ans++;
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, ans = 0;
cin >> n >> d;
while (n--) {
long long int a, b;
cin >> a >> b;
if ((a * a + b * b) <= d * d)
ans++;
}
cout << ans;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
// Important header files
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp>
#include <functional> // for less
#include <iostream>
using namespace __gnu_pbds;
using namespace std;
// Declaring ordered_set
typedef tree<int, null_typ... | #include <bits/stdc++.h>
using namespace std;
// Important header files
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp>
#include <functional> // for less
#include <iostream>
using namespace __gnu_pbds;
using namespace std;
// Declaring ordered_set
typedef tree<int, null_typ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 468 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pii pair<ll, ll>
#define SZ(x) ((int)(x).size())
// #define endl "\n"
#define vvi vector<vector<int>>
#define vvl vector<vector<long long>>
ll mod = 1e9 + 7;
// const double pi = acos(-1.0);
/*
ll kmp(string x)
{
ll n=... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pii pair<ll, ll>
#define SZ(x) ((int)(x).size())
// #define endl "\n"
#define vvi vector<vector<int>>
#define vvl vector<vector<long long>>
ll mod = 1e9 + 7;
// const double pi = acos(-1.0);
/*
ll kmp(string x)
{
ll n=... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 147 |
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define ll long long
#define pb push_back
#define FIO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define ll long long
#define pb push_back
#define FIO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 207 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= D) {
count++;
}
}
cout << count;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
long long count = 0;
for (int i = 0; i < N; i++) {
long long x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= D) {
count++;
}
}
cout << count;
} | [["-", 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 | 79 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
typedef long long ll;
const int inf = 0x3f3f3f3f;
const int mod = (1 ? 1e9 + 7 : 998244353);
const int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
ll a, b, c, d, e, f, n, T;
int main() {... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
typedef long long ll;
const int inf = 0x3f3f3f3f;
const int mod = (1 ? 1e9 + 7 : 998244353);
const int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1};
ll a, b, c, d, e, f, n, T;
int main() {... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 160 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vll vector<ll>
#define Map unordered_map<ll, ll>
int main() {
int n;
int d;
cin >> n >> d;
int ans = 0;
while (n--) {
double x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vll vector<ll>
#define Map unordered_map<ll, ll>
int main() {
int n;
long long d;
cin >> n >> d;
int ans = 0;
while (n--) {
long long x, y;
cin >> x >> y;
if (x * x + y * y <= 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], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 77 |
from math import *
from collections import *
from random import *
from bisect import *
import sys
input=sys.stdin.readline
def lis():
return list(map(int,input().split()))
def ma():
return map(int,input().split())
def inp():
return int(input())
n,d=ma()
r=0
for i in range(n):
x,y=ma()
f=(x*x)+(y*y)
... | #from math import *
from collections import *
from random import *
from bisect import *
import sys
input=sys.stdin.readline
def lis():
return list(map(int,input().split()))
def ma():
return map(int,input().split())
def inp():
return int(input())
n,d=ma()
r=0
for i in range(n):
x,y=ma()
f=(x*x)+(y*y)... | [["-", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["-", 36, 36, 0, 656, 0, 686, 0, 690, 0, 48], ["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]] | 5 | 136 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define debug cout << "this far" << endl;
#define For(i, n) for (int i = 0; i < (n); ++i)
#define lsb(x) ((x) & (-x))
#define PI acos(-1)
#defi... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define debug cout << "this far" << endl;
#define For(i, n) for (int i = 0; i < (n); ++i)
#define lsb(x) ((x) & (-x))
#define PI acos(-1)
#defi... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 171 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12
#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vp... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12
#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vp... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 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]] | 1 | 247 |
N,D = map(int,input().split())
count = 0
for _ in range(N):
a,b = map(int,input().split())
val = (a ** 2 + b ** 2) ** 0.5
if val >= D:
count +=1
print(count) | N,D = map(int,input().split())
count = 0
for _ in range(N):
a,b = map(int,input().split())
val = (a ** 2 + b ** 2) ** 0.5
if val <= 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 | 68 |
n,d=map(int,input().split())
d=d*d
count=0
for _ in range(n):
x,y=map(int,input().split())
if(x*x+y*y<=d*d):
count+=1
print(count) | n,d=map(int,input().split())
d=d*d
count=0
for _ in range(n):
x,y=map(int,input().split())
if(x*x+y*y<=d):
count+=1
print(count) | [["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 48], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22]] | 5 | 70 |
/*
h s, d't skp th si tll i's sved
* ABC141 E
* ABC145 D
* ABC147 F
*/
#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
int a, b;
for (int i = 0; i < n; i++) {
cin >> a >> b;
double k = (double)sqrt(a * a + ... | /*
h s, d't skp th si tll i's sved
* ABC141 E
* ABC145 D
* ABC147 F
*/
#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main() {
ll n, d;
cin >> n >> d;
ll ans = 0;
ll a, b;
for (ll i = 0; i < n; i++) {
cin >> a >> b;
long double k = (long double)sqrt(a ... | [["-", 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], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 49, 50, 51, 74, 39, 77, 39, 86, 0, 96]] | 1 | 97 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iostream>
#define vi vector<int>
#define lvi vector<long long>
#define pi pair<int, int>
#define lpi pair<long long, long long>
#define mp make_pair
#define pb push_back
#define ll long long
#define N 100005... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iostream>
#define vi vector<int>
#define lvi vector<long long>
#define pi pair<int, int>
#define lpi pair<long long, long long>
#define mp make_pair
#define pb push_back
#define ll long long
#define N 100005... | [["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]] | 1 | 696 |
#include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdint.h>
#include <string>
#include <vector>
using namespace std;
#define PI (3.14159265358979323846)
#define INF (2147483647)
#define INF_LL (9223372036854775807)
... | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdint.h>
#include <string>
#include <vector>
using namespace std;
#define PI (3.14159265358979323846)
#define INF (2147483647)
#define INF_LL (9223372036854775807)
... | [["-", 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 | 172 |
#include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <t... | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <t... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 2,869 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int n, d;
cin >> n >> d;
int x[n], y[n];
rep(i, n) cin >> x[i] >> y[i];
int ans = 0;
rep(i, n) {
ll dis = (ll)x[i] * x[i] + (ll)y[i] * y[i];
if ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int n, d;
cin >> n >> d;
int x[n], y[n];
rep(i, n) cin >> x[i] >> y[i];
int ans = 0;
rep(i, n) {
ll dis = (ll)x[i] * x[i] + (ll)y[i] * y[i];
if ... | [["+", 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 | 137 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
/* freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);*/
int n, d, x, y;
cin >> n >> d;
int count = 0, sum;
for (int i = 0; i < n; i++) {
cin >> x >> y;
sum... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
/* freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);*/
long long n, d, x, y;
cin >> n >> d;
long long count = 0, sum;
for (int i = 0; i < n; i++) {
cin >> x >... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
#define Sort(Array) sort(Array.begin(), Array.end())
#define Reverse(a) reverse(a.begin(), a.end())
#define out(ans) cout << ans << endl;
int main() ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
#define Sort(Array) sort(Array.begin(), Array.end())
#define Reverse(a) reverse(a.begin(), a.end())
#define out(ans) cout << ans << endl;
int main() ... | [["-", 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]] | 1 | 118 |
N,D=map(int,input().split())
d2 = D**2
rt = 0
for i in range(n):
x,y = map(int,input().split())
if x**2 + y**2 < d2:
rt+=1
print(rt) | N,D=map(int,input().split())
d2 = D**2
rt = 0
for i in range(N):
x,y = map(int,input().split())
if x**2 + y**2 <= d2:
rt+=1
print(rt) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 66 |
#include <bits/stdc++.h>
#define pii pair<int, int>
#define endl "\n"
#define int long long
#define F first
#define S second
#define B begin
#define E end
#define RB rbegin
#define RE rend
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const int INF = 1e9 + 1;
const double EPS = 1e-10;... | #include <bits/stdc++.h>
#define pii pair<int, int>
#define endl "\n"
#define int long long
#define F first
#define S second
#define B begin
#define E end
#define RB rbegin
#define RE rend
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const int INF = 1e9 + 1;
const double EPS = 1e-10;... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 271 |
n,d=map(int,input().split())
ans=0
for i in range(n):
x,y=map(int,input().split())
if x**2+y**2<=d*2:
ans+=1
print(ans) | n,d=map(int,input().split())
ans=0
for i in range(n):
x,y=map(int,input().split())
if x**2+y**2<=d**2:
ans+=1
print(ans) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578]] | 5 | 63 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n, d;
cin >> n >> d;
int ans = 0;
int a, b;
while (n--) {
cin >> a >> b;
if (a * a + b * b <= d * d)
ans++;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, d;
cin >> n >> d;
ll ans = 0;
ll a, b;
while (n--) {
cin >> a >> b;
if (a * a + b * b <= d * d)
ans++;
}
cout << ans;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 75 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define mod 1000000000;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int test = 1;
// cin>>test;
while (test--) {
int n, d;
cin >> n >> d;
int cnt = 0;
for (int i = 0; i < ... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define mod 1000000000;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int test = 1;
// cin>>test;
while (test--) {
long long int n, d;
cin >> n >> d;
int cnt = 0;
for (int i... | [["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 127 |
#include <bits/stdc++.h>
using namespace std;
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define rep(i, N) for (int i = 0; i < (int)(N); ++i)
#define rep2(i, startValue, N) \
for (int i = (int)(startValue); i < (int)(N); ++i)
// syntax sugar: `for (int i = 0; i < ... |
#include <bits/stdc++.h>
using namespace std;
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define rep(i, N) for (int i = 0; i < (int)(N); ++i)
#define rep2(i, startValue, N) \
for (int i = (int)(startValue); i < (int)(N); ++i)
// syntax sugar: `for (int i = 0; i < ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 167 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.