buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0, x, y;
cin >> n >> d;
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 int n, d, ans = 0, x, y;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 76 |
package main
import (
"bufio"
"os"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
func nextFloat() float64 {
sc.Scan()
v, _ := strconv.ParseFloat(sc.Text(), 64)
return v
}
func nextInt() int64 {
sc.Scan()
v, _ := strconv.ParseInt(sc.Text(), 10, 64)
return v
}
func main() {
sc.Split(bufio.ScanWords)
N :... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
func nextFloat() float64 {
sc.Scan()
v, _ := strconv.ParseFloat(sc.Text(), 64)
return v
}
func nextInt() int64 {
sc.Scan()
v, _ := strconv.ParseInt(sc.Text(), 10, 64)
return v
}
func main() {
sc.Split(bufio.ScanWord... | [["+", 0, 454, 0, 455, 0, 458, 136, 429, 0, 62], ["+", 36, 36, 0, 434, 0, 454, 0, 455, 0, 165], ["-", 0, 435, 8, 196, 0, 1, 0, 2, 63, 22], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120]] | 7 | 186 |
import math
N, D= list(map(int,input().split()))
cnt = 0
for i in range(N):
x, y = list(map(int, input().split()))
#print(math.sqrt((x^2)+(y^2)))
if math.sqrt((x*x)+(y*y)) <= D:
cnt+=1
| import math
N, D= list(map(int,input().split()))
cnt = 0
for i in range(N):
x, y = list(map(int, input().split()))
#print(math.sqrt((x^2)+(y^2)))
if math.sqrt((x*x)+(y*y)) <= D:
cnt+=1
print(cnt) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 75 |
/*
__ __
/\ | | /\ | | | | /\ | / | ) /\ | )
/__\ | | /__\ |--| | | /__\ |< |-< /__\ |-<
/ \ |__ |__ / \ | | \__/ / \ | \ |__) / \ | \
*/
#import <bits/stdc++.h>
typedef long long ll;
#def... | /*
__ __
/\ | | /\ | | | | /\ | / | ) /\ | )
/__\ | | /__\ |--| | | /__\ |< |-< /__\ |-<
/ \ |__ |__ / \ | | \__/ / \ | \ |__) / \ | \
*/
#import <bits/stdc++.h>
typedef long long ll;
#def... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 128 |
#include <stdio.h>
int main(void) {
int n = 0;
long int d = 0;
long int a = 0;
long int b = 0;
int count = 0;
scanf("%d %d", &n, &d);
d *= d;
while (n--) {
scanf("%d %d", &a, &b);
if (d >= (a * a + b * b))
count++;
}
printf("%d\n", count);
return 0;
} | #include <stdio.h>
int main(void) {
int n = 0;
long int d = 0;
long int a = 0;
long int b = 0;
int count = 0;
scanf("%d %ld", &n, &d);
d *= d;
while (n--) {
scanf("%ld %ld", &a, &b);
if (d >= (a * a + b * b))
count++;
}
printf("%d\n", count);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 104 |
#include <bits/stdc++.h>
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(x * x + y * y) <= d) {
ans++;
}
}
cout << ans << endl;
return (0);
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, x, y, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (sqrt(x * x + y * y) <= d) {
ans++;
}
}
cout << ans << endl;
return (0);
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 84 |
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n, d;
cin >> n >> d;
d = d * d;
int sum = 0;
for (int i = 1; i <= n; i++) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= d)
sum++;
}
cout << sum << endl;
}
| #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, d;
cin >> n >> d;
d = d * d;
int sum = 0;
for (int i = 1; i <= n; i++) {
ll x, y;
cin >> x >> y;
if (x * x + y * y <= d)
sum++;
}
cout << sum << 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 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
int X[N];
int Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
int ans = 0;
for (int i = 0; i < N; i++) {
int64_t XX = X[i] * X[i];
int64_t YY = Y[i] * Y[i];
int64_t DD = D * D;
if (XX + YY <= DD... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, D;
cin >> N >> D;
long long X[N];
long long Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
int ans = 0;
for (int i = 0; i < N; i++) {
int64_t XX = X[i] * X[i];
int64_t YY = Y[i] * Y[i];
int64_t DD = D * D;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 132 |
/* src:
N, D = inputInt(), inputInt()
XY[:N*2] = inputInt64()
sum = 0
sum += XY[(:N)*2]*XY[$1*2]+XY[$1*2+1]*XY[$1*2+1]<=D*D
print(sum)
*/
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <map>
#include <queue>
#include <stack>
#include <string>... | /* src:
N, D = inputInt(), inputInt64()
XY[:N*2] = inputInt64()
sum = 0
sum += XY[(:N)*2]*XY[$1*2]+XY[$1*2+1]*XY[$1*2+1]<=D*D
print(sum)
*/
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <map>
#include <queue>
#include <stack>
#include <strin... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["-", 0, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 0, 9, 0, 1, 0, 11, 12, 2, 63, 22]] | 1 | 1,284 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
int n;
cin >> n;
int x, y;
int d;
cin >> d;
int ans = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << "\n";
} | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll x, y;
ll d;
cin >> d;
ll ans = 0;
for (ll i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << "\n";
} | [["-", 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 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
long x, y;
long thresh = d * d;
int count = 0;
while (n > 0) {
cin >> x >> y;
if ((x * x + y * y) <= thresh)
count++;
n--;
}
cout << count << endl;
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main() {
long n, d;
cin >> n >> d;
long x, y;
long thresh = d * d;
int count = 0;
while (n > 0) {
cin >> x >> y;
if ((x * x + y * y) <= thresh)
count++;
n--;
}
cout << count << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 83 |
n, d = map(int, input().split())
s == 0
for i in range(n+1):
x, y = map(int,input().split())
if x**2+y**2 <= d**2:
s = s+1
print(s) | n, d = map(int, input().split())
s = 0
for i in range(n):
x, y = map(int, input().split())
if x**2+y**2 <= d**2:
s += 1
print(s) | [["-", 36, 36, 0, 656, 0, 1, 0, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+"... | 5 | 67 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
const int N = 1e6 + 100;
int n;
double d;
void work() {
cin >> n >> d;
double x, y;
int ans = 0;
for (int i = 1; i <= n; i++) {
scanf("%lf %lf", &x, &y);
// cout << sqrt(x*x+y*y) << endl;
if (d <= sqrt(... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
const int N = 1e6 + 100;
int n;
double d;
void work() {
cin >> n >> d;
double x, y;
int ans = 0;
for (int i = 1; i <= n; i++) {
scanf("%lf %lf", &x, &y);
// cout << sqrt(x*x+y*y) << endl;
if (d >= sqrt(... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 117 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, x, y;
int ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, x, y;
long long ans = 0;
cin >> n >> d;
for (long i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 80 |
#include <bits/stdc++.h>
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 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
long long 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 << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 81 |
n,d = map(int,input().split())
ans = 0
for i in range(n):
x,y = map(int,input().split())
D = x **2 + y ** 2
if D <= d:
ans = ans + 1
print(ans) | n,d = map(int,input().split())
ans = 0
for i in range(n):
x,y = map(int,input().split())
D = x **2 + y ** 2
if D <= d **2:
ans = 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 | 66 |
#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() {
double N, D;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
double 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, 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 | 77 |
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define Mp make_pair
#define pb push_back
using ll = long long;
using db = double;
using pii = pair<int, int>;
using vi = vector<int>;
mt19937 mrand(time(0));
ll get(ll r) { return ((ll)mrand() * mrand() % r + r) % r; }
ll get(ll l, ll r)... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define Mp make_pair
#define pb push_back
using ll = long long;
using db = double;
using pii = pair<int, int>;
using vi = vector<int>;
mt19937 mrand(time(0));
ll get(ll r) { return ((ll)mrand() * mrand() % r + r) % r; }
ll get(ll l, ll r)... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]] | 1 | 205 |
#include <iostream>
#define NMAX 200002
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 (x * x + y * y <= D * D)
ans++;
}
cout << ans << endl;
} | #include <iostream>
#define NMAX 200002
using namespace std;
int main() {
long N, D, x, y, ans = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (x * x + y * y <= D * D)
ans++;
}
cout << ans << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, i, x[200000], y[200000], count = 0;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x[i] >> y[i];
if (x[i] * x[i] + y[i] * y[i] <= d * d) {
count++;
}
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d, i, x[200000], y[200000], count = 0;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x[i] >> y[i];
if (x[i] * x[i] + y[i] * y[i] <= 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]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n, d, cnt = 0;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
++cnt;
}
cout << cnt << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long int n, d, cnt = 0;
cin >> n >> d;
for (int i = 0; i < n; ++i) {
long long int x, y;
cin >> x >> y;
if (x * x + y * y <= d * d)
++cnt;
}
cout << cnt << "\n";
return ... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int n, d, x, y;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
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(void) {
long long int n, d, x, y;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d) {
count++;
}
}
cout << count << endl;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 83 |
N,D = map(int(),input().split())
answer = 0
for i in range(N):
x,y = map(int(),input().split())
if(D**2 >= x**2+y**2):
answer += 1
print(answer) | N,D = map(int,input().split())
answer = 0
for i in range(N):
x,y = map(int,input().split())
if(D**2 >= x**2+y**2):
answer += 1
print(answer) | [["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 69 |
#include <bits/stdc++.h>
using namespace std;
#define fast_IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl '\... | #include <bits/stdc++.h>
using namespace std;
#define fast_IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl '\... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 285 |
// codeforces.h : включаемый файл для стандартных системных включаемых файлов
// или включаемые файлы для конкретного проекта.
#include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
typedef long long ll;
const string INPUT_FILE = "../../../../codeforces/input.txt";
const string OUTPUT_FILE = "../../... | // codeforces.h : включаемый файл для стандартных системных включаемых файлов
// или включаемые файлы для конкретного проекта.
#include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
typedef long long ll;
const string INPUT_FILE = "../../../../codeforces/input.txt";
const string OUTPUT_FILE = "../../... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 4,068 |
#include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <string.h>
#include <vector>
#define NL << endl
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define endl "\n"
#define fill(x, y) memset(x, y, si... | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <iostream>
#include <math.h>
#include <queue>
#include <set>
#include <string.h>
#include <vector>
#define NL << endl
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define endl "\n"
#define fill(x, y) memset(x, y, si... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 191 |
N,D=map(int,input().split())
ans=0
for i in range(N):
x,y=map(int,input().split())
if(D*D>=x*x+y*y):ans=+1
print(ans) | N,D=map(int,input().split())
ans=0
for i in range(N):
x,y=map(int,input().split())
if(D*D>=x*x+y*y):ans+=1
print(ans) | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 64, 196, 0, 1, 0, 662, 12, 664, 17, 72], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107]] | 5 | 66 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = s; i < (int)(n); i++)
#define co(x) cout << x << endl
#define SQvec(i, j) vector<vector<int>> data(i, vector<int>(j))
#define mod 1000000007
typedef long long int lint;
int main() {
int N, D, cnt;
cin >> N >> D;
vector<int> X(N), Y(N... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = s; i < (int)(n); i++)
#define co(x) cout << x << endl
#define SQvec(i, j) vector<vector<int>> data(i, vector<int>(j))
#define mod 1000000007
typedef long long int lint;
int main() {
lint N, D, cnt;
cin >> N >> D;
vector<lint> X(N), Y... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78]] | 1 | 146 |
import math
n,d = map(int,input().split())
ans = 0
for i in range(n):
x,y = map(int,input().split())
if math.sqrt((x ** 2) + (y ** 2)) >= d:
ans += 1
print(ans) | import math
n,d = map(int,input().split())
ans = 0
for i in range(n):
x,y = map(int,input().split())
if math.sqrt((x ** 2) + (y ** 2)) <= 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 | 72 |
import math
N,D = [int(x) for x in input().split()]
count = 0
for i in range(D):
X,Y = [int(x) for x in input().split()]
if math.sqrt(X**2 + Y**2) <= D:
count += 1
print(count) | import math
N,D = [int(x) for x in input().split()]
count = 0
for i in range(0,N):
X,Y = [int(x) for x in input().split()]
if math.sqrt(X**2 + Y**2) <= D:
count += 1
print(count) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 76 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
int n, d, cnt = 0, i;
scanf("%d %d", &n, &d);
int a[n], b[n];
for (i = 0; i < n; i++) {
scanf("%d %d", &a[i], &b[i]);
if (sqrt(a[i] * a[i] + b[i] * b[i]) <= d) {
cnt++;
}
}
printf("%d\n", cnt);
}
| #include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
int n, d, cnt = 0, i;
scanf("%d %d", &n, &d);
double a[n], b[n];
for (i = 0; i < n; i++) {
scanf("%lf %lf", &a[i], &b[i]);
if (sqrt(a[i] * a[i] + b[i] * b[i]) <= d) {
cnt++;
}
}
printf("%d\n", cnt);
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 123 |
#include <iostream>
int main() {
int n, d, count;
std::cin >> n >> d;
count = 0;
for (; 0 < n; --n) {
int x, y;
std::cin >> x >> y;
if (d * d >= x * x + y * y) {
count++;
}
}
std::cout << count;
return 0;
} | #include <iostream>
int main() {
long n, d, count;
std::cin >> n >> d;
count = 0;
for (; 0 < n; --n) {
long x, y;
std::cin >> x >> y;
if (d * d >= x * x + y * y) {
count++;
}
}
std::cout << count;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 80 |
import math
n, d = map(int, input().split())
cnt = 0
for i in range(n):
x, y = map(int, input().split())
dist = math.sqrt((x * x) + (y * y))
print(dist)
if dist <= d:
cnt += 1
print(cnt)
| import math
n, d = map(int, input().split())
cnt = 0
for i in range(n):
x, y = map(int, input().split())
dist = math.sqrt((x * x) + (y * y))
if dist <= d:
cnt += 1
print(cnt)
| [["-", 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 | 79 |
import math
N,D = map(int,input().split())
cnt = 0
for n in range(N):
a,b = map(int,input().split())
if math.sqrt(a**2 + b**2)-D>=0:
cnt+=1
print(cnt) | import math
N,D = map(int,input().split())
cnt = 0
for n in range(N):
a,b = map(int,input().split())
if math.sqrt(a**2 + b**2)-D<=0:
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 | 70 |
#include <bits/stdc++.h>
using namespace std;
#define debug(x) cerr << #x << "; " << x << endl
int main() {
int N, D, X, Y;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
if (X * X + Y * Y <= D * D) {
count += 1;
}
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define debug(x) cerr << #x << "; " << x << endl
int main() {
long long N, D, X, Y;
cin >> N >> D;
int count = 0;
for (int i = 0; i < N; i++) {
cin >> X >> Y;
if (X * X + Y * Y <= D * D) {
count += 1;
}
}
cout << count << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int p[n][2];
for (int i = 0; i < n; i++) {
cin >> p[i][0] >> p[i][1];
}
int s = d * d;
int count = 0;
for (int i = 0; i < n; i++) {
if (s >= (p[i][0] * p[i][0] + p[i][1] * p[i][1]))
count++;
}
cout << c... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d;
cin >> n >> d;
long long p[n][2];
for (int i = 0; i < n; i++) {
cin >> p[i][0] >> p[i][1];
}
long long s = d * d;
int count = 0;
for (int i = 0; i < n; i++) {
if (s >= (p[i][0] * p[i][0] + p[i][1] * p[i][1]))
count+... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 144 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int N, D, x, y;
int points{0};
cin >> N >> D;
cout << endl;
for (int i{0}; i < N; i++) {
cin >> x >> y;
double mDistance{sqrt(((x * x) + (y * y)))};
if (mDistance <= D) {
points++;
}
}
cout << points;
} | #include <iostream>
#include <math.h>
using namespace std;
int main() {
int N;
double D, x, y;
int points{0};
cin >> N >> D;
cout << endl;
for (int i{0}; i < N; i++) {
cin >> x >> y;
double mDistance{sqrt(((x * x) + (y * y)))};
if (mDistance <= D) {
points++;
}
}
cout << ... | [["-", 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 | 98 |
n, d = map(int, input().split())
count = 0
for i in range(n):
x, y = map(int, input().split())
if (x ** 2 + 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 (x ** 2 + y ** 2) ** 0.5 <= 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 | 65 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define ll long long
int main() {
int N, D;
cin >> N >> D;
D = D * D;
int x, y, cnt = 0;
rep(i, N) {
... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define ll long long
int main() {
int N;
ll D;
cin >> N >> D;
D = D * D;
ll x, y;
int cnt = 0;
rep(i... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 96 |
#include <stdio.h>
int main(void) {
int N, D, X[200005], Y[200005], i, count = 0;
scanf("%d %d", &N, &D);
for (i = 0; i < N; i++) {
scanf("%d%d", &X[i], &Y[i]);
if (X[i] * X[i] + Y[i] * Y[i] <= D * D) {
count = count + 1;
}
}
printf("%d", count);
} | #include <stdio.h>
int main(void) {
long int N, D, X[200005], Y[200005], i, count = 0;
scanf("%ld %ld", &N, &D);
for (i = 0; i < N; i++) {
scanf("%ld%ld", &X[i], &Y[i]);
if (X[i] * X[i] + Y[i] * Y[i] <= D * D) {
count = count + 1;
}
}
printf("%ld", count);
}
| [["+", 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 | 120 |
#include <bits/stdc++.h>
#define PI 3.14159265359
#define rep(i, a, n) for (int i = a; i < (int)n; ++i)
#define SZ(x) ((int)(x).size()) // size() unsigned -> int
#define descsort(a) sort(a.begin(), a.end(), std::greater<int>())
using namespace std;
typedef long long ll;
const ll INF = 1e9 + 7;
int main(void) {
int ... | #include <bits/stdc++.h>
#define PI 3.14159265359
#define rep(i, a, n) for (int i = a; i < (int)n; ++i)
#define SZ(x) ((int)(x).size()) // size() unsigned -> int
#define descsort(a) sort(a.begin(), a.end(), std::greater<int>())
using namespace std;
typedef long long ll;
const ll INF = 1e9 + 7;
int main(void) {
int ... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 9, 0, 43, 39, 86, 0, 96]] | 1 | 121 |
#include <iostream>
using namespace std;
int main() {
long long n, d, x, y, s = 0;
cin >> n >> d;
for (int i = 0; i <= n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
s++;
}
cout << s;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long n, d, x, y, s = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
s++;
}
cout << s;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 78 |
#include <iostream>
using namespace std;
int main() {
int n, d, x, y, s = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
s++;
}
cout << s;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long n, d, x, y, s = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
s++;
}
cout << s;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 77 |
#include <iostream>
using namespace std;
int main() {
int n, d, x, y, s = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
s++;
}
cout << s << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long n, d, x, y, s = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (x * x + y * y <= d * d)
s++;
}
cout << s << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 79 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a, b, sum = 0, x, y;
cin >> a >> b;
for (int i = 0; i < a; ++i) {
cin >> x >> y;
if (x * x + y * y <= b * b)
sum++;
}
cout << sum << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
long long a, b, sum = 0, x, y;
cin >> a >> b;
for (int i = 0; i < a; i++) {
cin >> x >> y;
if (x * x + y * y <= b * b)
sum++;
}
cout << sum << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29]] | 1 | 81 |
N, D = map(int, input().split())
cnt =0
for _ in range(N):
a, b = map(int, input().split())
if np.sqrt(a**2+b**2)<=D:
cnt+=1
print(cnt) | import numpy as np
N, D = map(int, input().split())
cnt =0
for _ in range(N):
a, b = map(int, input().split())
if np.sqrt(a**2+b**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]] | 5 | 66 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define vi vector<int>
#define vb vector<bool>
#define lli long long int
#define vvi vector<vector<int>>
#define loop(n) for... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define vi vector<int>
#define vb vector<bool>
#define lli long long int
#define vvi vector<vector<int>>
#define loop(n) for... | [["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 164 |
import numpy as np
temp = input().split()
s = [input().split() for i in range(int(temp[0]))]
cnt = 0
for i in range(int(temp[0])):
if np.sqrt(int(s[i][0])*int(s[i][0]) + int(s[i][1])*int(s[i][1])) > int(temp[1]):
cnt += 1
print(cnt) | import numpy as np
temp = input().split()
s = [input().split() for i in range(int(temp[0]))]
cnt = 0
for i in range(int(temp[0])):
if np.sqrt(int(s[i][0])*int(s[i][0]) + int(s[i][1])*int(s[i][1])) <= int(temp[1]):
cnt += 1
print(cnt) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 119 |
N,D=map(int,input().split())
sum=0
for _ in range(N):
X,Y=map(int,input().split())
if math.sqrt(((X*X)+(Y*Y)))<=D:
sum=sum+1
print(sum)
| import math
N,D=map(int,input().split())
sum=0
for _ in range(N):
X,Y=map(int,input().split())
if math.sqrt(((X*X)+(Y*Y)))<=D:
sum=sum+1
print(sum)
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 74 |
#include <algorithm>
#include <cfenv>
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <ios>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map... | #include <algorithm>
#include <cfenv>
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <ios>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 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 | 325 |
import math
n = input().split()
N = int(n[0])
D = int(n[1])
mainList = [input() for i in range(N)]
print(mainList)
C = 0
for xY in mainList:
x = int((xY.split())[0])
y = int((xY.split())[1])
R = int(x ** 2) + int(y ** 2)
r = math.sqrt(R)
if D >= r:
C += 1
print(C) | import math
n = input().split()
N = int(n[0])
D = int(n[1])
mainList = [input() for i in range(N)]
C = 0
for xY in mainList:
x = int((xY.split())[0])
y = int((xY.split())[1])
R = (x ** 2) + (y ** 2)
r = math.sqrt(R)
if D >= r:
C += 1
print(C) | [["-", 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], ["-", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22]] | 5 | 120 |
/*input
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, D;
cin >> n >> D;
int ans = 0;
for (int i = 0; i < n; i++) {
long long int x, y;
cin >> x >> y;
ans += ((x * x + y * y) <= D);
}
cout << ans << "\n";
return 0;
} | /*input
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, D;
cin >> n >> D;
int ans = 0;
for (int i = 0; i < n; i++) {
long long int x, y;
cin >> x >> y;
ans += ((x * x + y * y) <= D * D);
}
cout << ans << "\n";
return 0;
}
| [["+", 0, 11, 12, 23, 0, 16, 12, 16, 17, 48], ["+", 0, 11, 12, 23, 0, 16, 12, 16, 12, 22]] | 1 | 87 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, d, c = 0;
cin >> n >> d;
while (n--) {
ll x, y;
cin >> x >> y;
if (sqrt((x * x) + (y * y)) >= d)
c++;
}
cout << c;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, d, c = 0;
cin >> n >> d;
while (n--) {
ll x, y;
cin >> x >> y;
if (sqrt((x * x) + (y * y)) <= d)
c++;
}
cout << c;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 76 |
#include <math.h>
#include <stdio.h>
int main(void) {
long N, D, a[2];
int cnt = 0, i;
scanf("%ld %ld", &N, &D);
for (i = 0; i < N; i++) {
scanf("%ld %ld", &a[0], &a[1]);
if (D == sqrt(a[0] * a[0] + a[1] * a[1]))
cnt++;
}
printf("%d\n", cnt);
return 0;
} | #include <math.h>
#include <stdio.h>
int main(void) {
long N, D, a[2];
int cnt = 0, i;
scanf("%ld %ld", &N, &D);
for (i = 0; i < N; i++) {
scanf("%ld %ld", &a[0], &a[1]);
if (D >= sqrt(a[0] * a[0] + a[1] * a[1]))
cnt++;
}
printf("%d\n", cnt);
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20]] | 0 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int cnt = 0;
while (n--) {
double x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) < (double)d)
cnt++;
}
cout << cnt << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
int cnt = 0;
while (n--) {
double x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= (double)d)
cnt++;
}
cout << cnt << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 76 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
long long X[N], Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
int res = 0;
for (int i = 0; i < N; i++) {
if (sqrt((X[i] * X[i]) + (Y[i] * Y[i])) < D) {
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
long long X[N], Y[N];
for (int i = 0; i < N; i++)
cin >> X[i] >> Y[i];
int res = 0;
for (int i = 0; i < N; i++) {
if (sqrt((X[i] * X[i]) + (Y[i] * Y[i])) <= D) {... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 133 |
//#pragma GCC optimize ("O3")
#pragma GCC target("sse4")
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <ctime>
#include <iostream>
#include <queue>
#include <set>
#include <stdbool.h>
#include <string>
#include <cstring>
#define pb push_back
#define FOR(i, a, b) for (int i = (a); i < (b);... | //#pragma GCC optimize ("O3")
#pragma GCC target("sse4")
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <ctime>
#include <iostream>
#include <queue>
#include <set>
#include <stdbool.h>
#include <string>
#include <cstring>
#define pb push_back
#define FOR(i, a, b) for (int i = (a); i < (b);... | [["-", 0, 7, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 380 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> vi;
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define F0R(i, a) for (ll i = 0; i < a; i++)
const int MOD = 1e9 + 7; // 998244353;
const int MX = 2e5 + 5; //
const ll INF = 1e18; //
int main... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> vi;
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define F0R(i, a) for (ll i = 0; i < a; i++)
const int MOD = 1e9 + 7; // 998244353;
const int MX = 2e5 + 5; //
const ll INF = 1e18; //
int main... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 151 |
N , D = map(int,input().split())
c = 0
for i in range(N):
x , y = map(int,input().split())
z = (x**2+y**2)**0.5
# print(z)
if D <= z:
c+=1
print(c) | N , D = map(int,input().split())
c = 0
for i in range(N):
x , y = map(int,input().split())
z = (x**2+y**2)**0.5
# print(z)
if D >= z:
c+=1
print(c) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 69 |
#include <bits/stdc++.h>
#include <cmath>
#define PB push_back
#define REP(i, a, b) for (int i = a; i < b; i++)
typedef long long int ll;
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll prak, prat, vid = 0;
cin >> prak >> prat;
prat *= prat;
for (ll i = 0; i < prak; i++) {
... | #include <bits/stdc++.h>
#include <cmath>
#define PB push_back
#define REP(i, a, b) for (int i = a; i < b; i++)
typedef long long int ll;
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll prak, prat, vid = 0;
cin >> prak >> prat;
prat *= prat;
for (ll i = 0; i < prak; i++) {
... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 112 |
#include <bits/stdc++.h>
#include <cmath>
#define PB push_back
#define REP(i, a, b) for (int i = a; i < b; i++)
typedef long long ll;
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n, d, ans = 0;
cin >> n >> d;
d = d * d;
for (int i = 0; i < n; i++) {
int x, y;
cin >>... | #include <bits/stdc++.h>
#include <cmath>
#define PB push_back
#define REP(i, a, b) for (int i = a; i < b; i++)
typedef long long ll;
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll n, d, ans = 0;
cin >> n >> d;
d = d * d;
for (int i = 0; i < n; i++) {
ll x, y;
cin >> x... | [["-", 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 | 113 |
#include <bits/stdc++.h>
using namespace std;
long long ok(int x, int y) { return x * x + y * y; }
int main() {
int n, d;
scanf("%d %d", &n, &d);
int ans = 0;
for (int i = 0; i < n; i++) {
int x, y;
scanf("%d %d", &x, &y);
if (ok(x, y) <= d * 1LL * d)
ans++;
}
printf("%d\n", ans);
ret... | #include <bits/stdc++.h>
using namespace std;
long long ok(int x, int y) { return x * 1LL * x + y * 1LL * y; }
int main() {
int n, d;
scanf("%d %d", &n, &d);
int ans = 0;
for (int i = 0; i < n; i++) {
int x, y;
scanf("%d %d", &x, &y);
if (ok(x, y) <= d * 1LL * d)
ans++;
}
printf("%d\n",... | [["+", 0, 37, 0, 16, 31, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 37, 0, 16, 31, 16, 17, 48], ["+", 0, 37, 0, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 37, 0, 16, 12, 16, 31, 16, 12, 13]] | 1 | 121 |
#include <cmath>
#include <cstdio>
typedef long long ll;
int main() {
int N, D;
scanf("%d%d", &N, &D);
ll D2 = D * D;
int cnt = 0;
for (int i = 0; i < N; ++i) {
int X, Y;
scanf("%d%d", &X, &Y);
if ((ll)X * X + (ll)Y * Y <= D2)
++cnt;
}
printf("%d\n", cnt);
return 0;
}
| #include <cmath>
#include <cstdio>
typedef long long ll;
int main() {
int N, D;
scanf("%d%d", &N, &D);
ll D2 = (ll)D * D;
int cnt = 0;
for (int i = 0; i < N; ++i) {
int X, Y;
scanf("%d%d", &X, &Y);
if ((ll)X * X + (ll)Y * Y <= D2)
++cnt;
}
printf("%d\n", cnt);
return 0;
}
| [["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 24], ["+", 49, 50, 51, 16, 31, 74, 39, 77, 39, 78], ["+", 0, 43, 49, 50, 51, 16, 31, 74, 0, 25]] | 1 | 113 |
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*x + y*y<=D*D:
ans+=1
print(ans)
| [["-", 0, 57, 15, 666, 0, 657, 31, 657, 17, 140], ["-", 15, 666, 0, 657, 31, 657, 12, 657, 31, 612], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 17, 48], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 12, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 140], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 65... | 5 | 63 |
// 85DTG
// 07082020
#include <bits/stdc++.h>
using namespace std;
#define bolt \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | // 85DTG
// 07082020
#include <bits/stdc++.h>
using namespace std;
#define bolt \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 141 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
ans++;
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, ans = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
long long int x, y;
cin >> x >> y;
if (sqrt(x * x + y * y) <= d)
ans++;
}
cout << ans;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, x, y;
int count = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d)
count++;
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, d, x, y;
int count = 0;
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d)
count++;
}
cout << count;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 69 |
#include <iostream>
int main() {
int N, D, X, Y, cnt = 0;
std::cin >> N >> D;
for (int i = 0; i < N; i++) {
std::cin >> X >> Y;
if (X * X + Y * Y <= D * D)
cnt++;
}
std::cout << cnt << std::endl;
} | #include <iostream>
int main() {
int64_t N, D, X, Y, cnt = 0LL;
std::cin >> N >> D;
for (int i = 0; i < N; i++) {
std::cin >> X >> Y;
if (X * X + Y * Y <= D * D)
cnt++;
}
std::cout << cnt << std::endl;
} | [["-", 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, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 80 |
from math import *
N, D = (int(x) for x in input().split())
count =0
for i in range(N):
X, Y = (int(x) for x in input().split())
if sqrt(X*X+Y*Y)<D:
count+=1
print(count) | from math import *
N, D = (int(x) for x in input().split())
count =0
for i in range(N):
X, Y = (int(x) for x in input().split())
if sqrt(X*X+Y*Y)<=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 | 76 |
#include <bits/stdc++.h>
using namespace std;
long long N, D;
long long tmp = 0;
int main() {
cin >> N >> D;
for (int i = 1; i < N; i++) {
long long X, Y, tmpp = 0;
cin >> X >> Y;
tmpp = X * X + Y * Y;
if (tmpp <= D * D) {
tmp += 1;
}
}
cout << tmp;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
long long N, D;
long long tmp = 0;
int main() {
cin >> N >> D;
for (int i = 0; i < N; i++) {
long long X, Y, tmpp = 0;
cin >> X >> Y;
tmpp += X * X + Y * Y;
if (tmpp <= D * D) {
tmp += 1;
}
}
cout << tmp;
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107]] | 1 | 93 |
#include <bits/stdc++.h>
#define f first
#define s second
#define pb push_back
#define mp make_pair
using namespace std;
typedef unsigned int uint;
typedef long long ll;
typedef long double ld;
const int N = 100006;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int n, d;
cin >> n >> d;
d *= ... | #include <bits/stdc++.h>
#define f first
#define s second
#define pb push_back
#define mp make_pair
using namespace std;
typedef unsigned int uint;
typedef long long ll;
typedef long double ld;
const int N = 100006;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll n, d;
cin >> n >> d;
d *= d... | [["-", 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 | 131 |
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 ans = 0;
for (int i = 0; i < n; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
if (Math.sqrt(a * a + b... | 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 ans = 0;
for (int i = 0; i < n; i++) {
double a = sc.nextInt();
double b = sc.nextInt();
if (Math.sqrt(a *... | [["-", 0, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 511, 0, 512]] | 3 | 123 |
/*
█▀ █░█ █▀█ █▀▀ █▄█ ▄▀█ █▀ █░█ █░█░█ ▄▀█ █▀ █░█ █▀▀ █▀█ █▀▀
▄█ █▀█ █▀▄ ██▄ ░█░ █▀█ ▄█ █▀█ ▀▄▀▄▀ █▀█ ▄█ █▀█ ██▄ █▀▄ ██▄*//*
MMMMMMMMMMMMMMMMMMMMM. MMMMMMMMMMMMMMMMMMMMM
`MMMMMMMMMMMMMMMMMMMM M\ /M MMMMMMMMMMMMMMMMMMMM'
`MMMMMMMMMMMMMMMMMMM MMMMMM... | /*
█▀ █░█ █▀█ █▀▀ █▄█ ▄▀█ █▀ █░█ █░█░█ ▄▀█ █▀ █░█ █▀▀ █▀█ █▀▀
▄█ █▀█ █▀▄ ██▄ ░█░ █▀█ ▄█ █▀█ ▀▄▀▄▀ █▀█ ▄█ █▀█ ██▄ █▀▄ ██▄*//*
MMMMMMMMMMMMMMMMMMMMM. MMMMMMMMMMMMMMMMMMMMM
`MMMMMMMMMMMMMMMMMMMM M\ /M MMMMMMMMMMMMMMMMMMMM'
`MMMMMMMMMMMMMMMMMMM MMMMMM... | [["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]] | 1 | 622 |
#include <cstdio>
#include <iostream>
using namespace std;
double D;
int main() {
int N;
double x, y;
int sum = 0;
scanf("%d%lf", &N, &D);
for (int i = 1; i <= N; i++) {
scanf("%lf%lf", &x, &y);
// cout << x*x + y*y << endl;
if ((x * x + y * y) >= D * D)
sum++;
}
printf("%d\n", sum);
}... | #include <cstdio>
#include <iostream>
using namespace std;
double D;
int main() {
int N;
double x, y;
int sum = 0;
scanf("%d%lf", &N, &D);
for (int i = 1; i <= N; i++) {
scanf("%lf%lf", &x, &y);
// cout << x*x + y*y << endl;
if ((x * x + y * y) <= D * D)
sum++;
}
printf("%d\n", sum);
... | [["-", 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, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<int> vec(N), date(N);
for (int i = 0; i < N; i++) {
cin >> vec.at(i) >> date.at(i);
}
int count = 0;
for (int i = 0; i < N; i++) {
if (sqrt(vec.at(i) * vec.at(i) + date.at(i) * date.at(i) + 0.0) <= D) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, D;
cin >> N >> D;
vector<double> vec(N), date(N);
for (int i = 0; i < N; i++) {
cin >> vec.at(i) >> date.at(i);
}
int count = 0;
for (int i = 0; i < N; i++) {
if (sqrt(vec.at(i) * vec.at(i) + date.at(i) * date.at(i) + 0.0) <= D) ... | [["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40]] | 1 | 138 |
#ABC174B
N,D = map(int,input.split())
X = []
Y = []
for _ in range(N):
x,y = map(int,input().split())
X.append(x)
Y.append(y)
count = 0
for i in range(N):
if D**2 >= X[i]**2 + Y[i]**2:
count += 1
print(count) |
#ABC174B
N,D = map(int,input().split())
X = []
Y = []
for _ in range(N):
x,y = map(int,input().split())
X.append(x)
Y.append(y)
count = 0
for i in range(N):
if D**2 >= X[i]**2 + Y[i]**2:
count += 1
print(count) | [["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 96 |
import math
n,d=map(int,input().split(' '))
cnt=0
while n>0:
x,y=map(int,input().split(' '))
res=math.sqrt(x**2+y**2)
if res<=d:
cnt+=1
print(cnt)
| import math
n,d=map(int,input().split(' '))
cnt=0
while n>0:
x,y=map(int,input().split(' '))
res=math.sqrt(x**2+y**2)
if res<=d:
cnt+=1
n=n-1
print(cnt)
| [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 74 |
import math
def distance(N, D, point):
count = 0
for i in range(N):
if math.sqrt(points[i][0]**2 + points[i][1]**2) <= D:
count += 1
return count
if __name__ == "__main__":
N, D = map(int, input().split())
points = []
for _ in range(N):
x, y = map(int, input.split(... | import math
def distance(N, D, point):
count = 0
for i in range(N):
if math.sqrt(points[i][0]**2 + points[i][1]**2) <= D:
count += 1
return count
if __name__ == "__main__":
N, D = map(int, input().split())
points = []
for _ in range(N):
x, y = map(int, input().spli... | [["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]] | 5 | 126 |
#include <iostream>
using namespace std;
int main() {
int N, D, x, y, count = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (x * x + y * y <= D * D)
count++;
}
cout << count << endl;
}
| #include <iostream>
using namespace std;
int main() {
long long N, D, x, y, count = 0;
cin >> N >> D;
for (int i = 0; i < N; i++) {
cin >> x >> y;
if (x * x + y * y <= 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]] | 1 | 76 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define maxs(a, b) a = max(a, b)
#define mins(a, b) a = min(a, b)
using namespace std;
template <class T> inline istrea... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define maxs(a, b) a = max(a, b)
#define mins(a, b) a = min(a, b)
using namespace std;
template <class T> inline istrea... | [["-", 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], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 216 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define nn '\n'
#define db(x) cout << "(DB)-> " << x << nn
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, d;
cin >> n >> d;
int p[n][2];
for (int i = 0; i < n; i++)
for (int j = 0; j < 2; j++)
cin >> p[i][j... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define nn '\n'
#define db(x) cout << "(DB)-> " << x << nn
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, d;
cin >> n >> d;
ll p[n][2];
for (int i = 0; i < n; i++)
for (int j = 0; j < 2; j++)
cin >> p[i][j];... | [["-", 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 | 179 |
#include <algorithm>
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define ll lon... | #include <algorithm>
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define ll lon... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 231 |
#include <iostream>
#include <math.h>
using namespace std;
int N, D, ans = 0;
int main() {
cin >> N >> D;
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
// if(pow(x,2) + pow(y,2) <= pow(D,2)) ans++;
if (x * x + y * y <= D * D)
ans++;
}
cout << ans << endl;
return 0;
}
| #include <iostream>
#include <math.h>
using namespace std;
long long N, D, ans = 0;
int main() {
cin >> N >> D;
for (int i = 0; i < N; i++) {
long long x, y;
cin >> x >> y;
// if(pow(x,2) + pow(y,2) <= pow(D,2)) ans++;
if (x * x + y * y <= D * D)
ans++;
}
cout << ans << endl;
return 0... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 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 | 83 |
#include <iostream>
using namespace std;
int ans, n, d, x, y;
int main() {
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans;
} | #include <iostream>
using namespace std;
int ans, n;
long long d, x, y;
int main() {
cin >> n >> d;
while (n--) {
cin >> x >> y;
if (x * x + y * y <= d * d)
ans++;
}
cout << ans;
} | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 21], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]] | 1 | 63 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
int main() {
// your code goes here
lli t, d, l = 0;
cin >> t >> d;
while (t--) {
lli a, b;
cin >> a >> b;
if ((a * a + b * b) <= d * d)
l++;
cout << l;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
int main() {
// your code goes here
lli t, d, l = 0;
cin >> t >> d;
while (t--) {
lli a, b;
cin >> a >> b;
if ((a * a + b * b) <= d * d)
l++;
}
cout << l;
return 0;
} | [["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]] | 1 | 75 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#define ll long long int
#define mod 1000000007
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int T, k;
cin >> T >> k;
int cnt = 0;
for (int i = 0; i < T; i++) {
int x, ... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#define ll long long int
#define mod 1000000007
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll T, k;
cin >> T >> k;
int cnt = 0;
for (int i = 0; i < T; i++) {
ll x, y;... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["+", 0, 7, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define Int int32_t
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false), cin.tie(NULL);
#define pii pair<int, int>
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define bitcnt(n) __builtin_popcountl... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define Int int32_t
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false), cin.tie(NULL);
#define pii pair<int, int>
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define bitcnt(n) __builtin_popcountl... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 482 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod 1000000007
#define all(v) v.begin(), v.end()
#define pb push_back
#define size(v) (int)v.size()
#define fast \
ios_base::sync_with_stdio(false); ... |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod 1000000007
#define all(v) v.begin(), v.end()
#define pb push_back
#define size(v) (int)v.size()
#define fast \
ios_base::sync_with_stdio(false); ... | [["-", 8, 9, 0, 37, 0, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 37, 0, 23, 0, 16, 17, 20]] | 1 | 265 |
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
template <class T> inline void chmin(T &a, T b) {
if (a > b)
a = b;
}
template <class T> inline void chmax(T &a, T ... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
template <class T> inline void chmin(T &a, T b) {
if (a > b)
a = b;
}
template <class T> inline void chmax(T &a, T ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]] | 1 | 605 |
n,d=list(map(int,input().split()))
cnt=0
for i in range(n):
x,y=list(map(int,input().split()))
if (x**2+y**2)==d**2:
cnt+=1
print(cnt)
| n,d=list(map(int,input().split()))
cnt=0
for i in range(n):
x,y=list(map(int,input().split()))
if (x**2+y**2)<=d**2:
cnt+=1
print(cnt) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, count = 0;
double D;
cin >> N >> D;
for (int i = 0; i <= N; ++i) {
double X, Y;
cin >> X >> Y;
if (sqrt(X * X + Y * Y) <= D) {
++count;
}
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, count = 0;
double D;
cin >> N >> D;
for (int i = 0; i < N; ++i) {
double X, Y;
cin >> X >> Y;
if (sqrt(X * X + Y * Y) <= D) {
++count;
}
}
cout << count << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
const double delta = 1e-9;
double dist(int x, int y) { return sqrt(x * x + y * y); }
int main() {
int n, d, x, y, count = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (dist(x, y) < d + delta)
count++;
}
cout << count;
retur... | #include <bits/stdc++.h>
using namespace std;
const double delta = 1e-9;
double dist(long long x, long long y) { return sqrt(x * x + y * y); }
int main() {
int n, d, x, y, count = 0;
cin >> n >> d;
for (int i = 0; i < n; i++) {
cin >> x >> y;
if (dist(x, y) < d + delta)
count++;
}
cout << co... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96]] | 1 | 105 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
long long n, d, x, y;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
int a = x * x + y * y;
if (a >= d * d) {
count += 1;
}
}
cout << count << endl;
}
| #include <iostream>
#include <math.h>
using namespace std;
int main() {
long long int n, d, x, y;
cin >> n >> d;
int count = 0;
for (int i = 0; i < n; i++) {
cin >> x >> y;
long long int a = x * x + y * y;
if (a <= d * d) {
count += 1;
}
}
cout << count << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 88 |
#include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) ((v).begin()), ((v).end())
#define allr(v) ((v).rbegin()), ((v).rend())
#define pb push_back
#define mp make_pair
#define clr(v, d) memset(v, d, sizeof(v))
#define PI acos(-1)
typedef long long ll;
typedef unsigned long long ull;
const double eps =... | #include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) ((v).begin()), ((v).end())
#define allr(v) ((v).rbegin()), ((v).rend())
#define pb push_back
#define mp make_pair
#define clr(v, d) memset(v, d, sizeof(v))
#define PI acos(-1)
typedef long long ll;
typedef unsigned long long ull;
const double eps =... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 341 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define range(a) a.begin(), a.end()
#define rep(i, c) for (int i = 0; i < (... | #include <algorithm>
#include <climits>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define range(a) a.begin(), a.end()
#define rep(i, c) 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 | 184 |
#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 ans = 0;
rep(i, n) {
ll x, y;
cin >> x >> y;
//距離の計算により、D以上をカウントする
if (x * x + y * y <= d * d)
ans++;
... | #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;
ll d;
cin >> n >> d;
int ans = 0;
rep(i, n) {
ll x, y;
cin >> x >> y;
//距離の計算により、D以上をカウントする
if (x * x + y * y <= d * d)
ans+... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, d, count;
count = 0;
cin >> n >> d;
vector<int> x(n), y(n);
vector<double> dis(n);
for (int i = 0; i < n; i++) {
cin >> x.at(i) >> y.at(i);
}
for (int l = 0; l < n; l++) {
dis.at(l) = sqrt(x.at(l) * x.at(l) + y.at(l) * y.at(l));... | #include <bits/stdc++.h>
using namespace std;
int main() {
long n, d, count;
count = 0;
cin >> n >> d;
vector<long> x(n), y(n);
vector<double> dis(n);
for (int i = 0; i < n; i++) {
cin >> x.at(i) >> y.at(i);
}
for (int l = 0; l < n; l++) {
dis.at(l) = sqrt(x.at(l) * x.at(l) + y.at(l) * y.at(l)... | [["-", 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 | 158 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, y, i, c = 0;
double d;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x >> y;
double p = sqrt(x * x + y * y);
if (p <= d)
c++;
}
cout << c;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long int n, x, y, i, c = 0;
double d;
cin >> n >> d;
for (i = 0; i < n; i++) {
cin >> x >> y;
double p = sqrt(x * x + y * y);
if (p <= d)
c++;
}
cout << c;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 82 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
const int MAX_N = 1e5 + 5;
const int MAX_L = 20; // ~ Log N
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
const int MAX_N = 1e5 + 5;
const int MAX_L = 20; // ~ Log N
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef... | [["+", 3, 4, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 3, 4, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 3, 4, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 3, 4, 0, 16, 12, 16, 31, 74, 0, 25]] | 1 | 227 |
#include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
typedef long long ll;
typedef long double ld;
using namespace std;
int main() {
int N;
ll D;
cin >> N >> D;
int ans... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
typedef long long ll;
typedef long double ld;
using namespace std;
int main() {
int N;
ll D;
cin >> N >> D;
int ans... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 112 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.