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> int main() { int n; long long d; int cnt = 0; std::cin >> n >> d; long long x; long long y; for (int i = 0; i < n; i++) { std::cin >> x >> y; if (x * x + y * y < d * d) cnt++; } std::cout << cnt; return 0; }
#include <bits/stdc++.h> int main() { int n; long long d; int cnt = 0; std::cin >> n >> d; long long x; long long y; for (int i = 0; i < n; i++) { std::cin >> x >> y; if (x * x + y * y <= d * d) cnt++; } std::cout << cnt; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
86
N, D = list(map(int, input().split())) count = 0 for _ in range(N): X, Y = list(map(int, input().split())) if (X * X + Y * Y) ** 2 <= D ** 2 : count += 1 print(count)
N, D = list(map(int, input().split())) count = 0 for _ in range(N): X, Y = list(map(int, input().split())) if X * X + Y * Y <= D ** 2 : count += 1 print(count)
[["-", 0, 57, 15, 666, 0, 657, 31, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 657, 31, 23, 0, 25], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]]
5
73
#include <bits/stdc++.h> using namespace std; int main() { int n, d, p, q, co = 0; cin >> n >> d; for (int i = 1; i <= n; i++) { cin >> p >> q; if (p * p + q * q <= d * d) { co++; } } cout << co << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d, p, q, co = 0; cin >> n >> d; for (int i = 1; i <= n; i++) { cin >> p >> q; if (p * p + q * q <= d * d) { co++; } } cout << co << endl; return 0; }
[["+", 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()) if X*X+Y*Y<=D: 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)
[["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]]
5
61
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.nextInt(); long dist = d * d; int ans = 0; for (int i = 0; i < n; i++) { long a = sc.nextInt(); long b = sc.nextInt(); if (...
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.nextInt(); long dist = d * d; int ans = 0; for (int i = 0; i < n; i++) { long a = sc.nextInt(); long b = sc.nextInt(); if (...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
129
n, d = map(int, input().split()) cnt = 0 for ti in range(n) : x, y = map(int, input().split()) dist = (x**2 + y**2)**0.5 if(dist >= d): cnt += 1 print(cnt)
n, d = map(int, input().split()) cnt = 0 for ti in range(n) : x, y = map(int, input().split()) dist = (x**2 + y**2)**0.5 if(dist <= d): cnt += 1 print(cnt)
[["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]]
5
70
// #include <algorithm> #include <bitset> #include <cstdio> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; using ll = l...
// #include <algorithm> #include <bitset> #include <cstdio> #include <cstdlib> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; using ll = l...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
165
from sys import stdin input = stdin.buffer.readline n, d = map(int, input().split()) r = 0 for _ in range(n): x, y = map(int, input().split()) r += x * x + y * y >= d * d print(r)
from sys import stdin input = stdin.buffer.readline n, d = map(int, input().split()) r = 0 for _ in range(n): x, y = map(int, input().split()) r += x * x + y * y <= d * d print(r)
[["-", 8, 196, 0, 1, 0, 677, 12, 666, 667, 20], ["+", 8, 196, 0, 1, 0, 677, 12, 666, 667, 19]]
5
71
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long int #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long int #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
333
// // main.cpp // atcoder174 // // Created by Keita on 2020/08/02. // Copyright © 2020 Keita. All rights reserved. // #include <algorithm> #include <complex> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> #define ...
// // main.cpp // atcoder174 // // Created by Keita on 2020/08/02. // Copyright © 2020 Keita. All rights reserved. // #include <algorithm> #include <complex> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> #define ...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
175
#include <bits/stdc++.h> using namespace std; #define fo(i, n) for (i = 0; i < n; i++) #define ll long long #define ld long double #define F first #define S second #define all(x) x.begin(), x.end() #define pb push_back(x) void solve() { /* Your code here */ int n, m; cin >> n >> m; vector<float> v; f...
#include <bits/stdc++.h> using namespace std; #define fo(i, n) for (i = 0; i < n; i++) #define ll long long #define ld long double #define F first #define S second #define all(x) x.begin(), x.end() #define pb push_back(x) void solve() { /* Your code here */ int n, m; cin >> n >> m; vector<ld> v; for ...
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
190
import math def inputToIntList(): return list(map(int, input().split())) x = inputToIntList() count = x[0] d0 = x[1] result = [] for _ in range(count): point = inputToIntList() d1 = math.sqrt(point[0]**2 + point[1]**2) if d1 < d0: result.append(d1) print(len(result))
import math def inputToIntList(): return list(map(int, input().split())) x = inputToIntList() count = x[0] d0 = x[1] result = [] for _ in range(count): point = inputToIntList() d1 = math.sqrt(point[0]**2 + point[1]**2) if d1 <= d0: result.append(d1) print(len(result))
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]]
5
95
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pi; typedef pair<ll, ll> pl; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<pi> vpi; typedef vector<pl> vpl; typedef vector<vi> vvi; #define FOR(i, a, b) for (int i = a; i < (b); i++) #...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pi; typedef pair<ll, ll> pl; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<pi> vpi; typedef vector<pl> vpl; typedef vector<vi> vvi; #define FOR(i, a, b) for (int i = a; i < (b); i++) #...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78]]
1
283
ma = lambda :map(int,input().split()) ni = lambda:int(input()) yn = lambda fl:print("Yes") if fl else print("No") import collections import math import itertools import heapq as hq n,d = ma() cnt=0 for i in range(n): p,q = ma() if p**2 + q**2 <=D**2: cnt+=1 print(cnt)
ma = lambda :map(int,input().split()) ni = lambda:int(input()) yn = lambda fl:print("Yes") if fl else print("No") import collections import math import itertools import heapq as hq n,d = ma() cnt=0 for i in range(n): p,q = ma() if p**2 + q**2 <=d**2: cnt+=1 print(cnt)
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22]]
5
101
N, D = map(int, input().split()) points = [list(map(int, input().split())) for _ in range(N)] count = 0 for x, y in points: if x**2 + y**2 <= D: count += 1 print(count)
N, D = map(int, input().split()) points = [list(map(int, input().split())) for _ in range(N)] count = 0 for x, y in points: if x**2 + y**2 <= D**2: count += 1 print(count)
[["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 578], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]]
5
70
def main(): n, threshould = [int(x) for x in input().split()] count = 0 for _ in range(n): x, y = [int(x) ** 2 for x in input().split()] # 真偽値は 1 か 0 として足せる。 count += (x ** 2 + y ** 2) <= threshould ** 2 print(count) if __name__ == '__main__': main()
def main(): n, threshould = [int(x) for x in input().split()] count = 0 for _ in range(n): x, y = [int(x) for x in input().split()] # 真偽値は 1 か 0 として足せる。 count += (x ** 2 + y ** 2) <= threshould ** 2 print(count) if __name__ == '__main__': main()
[["-", 0, 1, 0, 662, 12, 658, 8, 657, 17, 578], ["-", 0, 1, 0, 662, 12, 658, 8, 657, 12, 612]]
5
88
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); int n, d, ans = 0; cin >> n >> d; for (int i = 0; i < n; i++) { int x, y; cin >> x >> y; if (x * x + y * y <= d * d) ans++; } cout << ans << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); 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 ((x * x + y * y) <= d * d) ans++; } cout << ans << "\n"; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 7, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25]]
1
86
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ios_base ::sync_with_stdio(false); cin.tie(NULL); int n, d; cin >> n >> d; int count = 0; while (n--) { int x, y; cin >> x >> y; if ((ll)(x * x) + (ll)(y * y) <= (ll)(d * d)) ++count; } cout << count; ret...
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ios_base ::sync_with_stdio(false); cin.tie(NULL); ll n, d; cin >> n >> d; int count = 0; while (n--) { ll x, y; cin >> x >> y; if ((ll)(x * x) + (ll)(y * y) <= (ll)(d * d)) ++count; } cout << count; retur...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78]]
1
102
#include <algorithm> #include <bits/stdc++.h> using namespace std; using ll = long long; typedef vector<int> vi; // macros #define F first #define S second #define PB push_back #define MP make_pair #define fio \ ios_base::sync_with_stdio(false); ...
#include <algorithm> #include <bits/stdc++.h> using namespace std; using ll = long long; typedef vector<int> vi; // macros #define F first #define S second #define PB push_back #define MP make_pair #define fio \ ios_base::sync_with_stdio(false); ...
[["-", 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], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
159
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef pair<int, int> pii; typedef pair<char, int> pci; typedef unordered_map<int, int> mii; typedef unordered_map<int, int>::iterator iter; typedef stack<int> si; typedef stack<char> sc; bool...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef pair<int, int> pii; typedef pair<char, int> pci; typedef unordered_map<int, int> mii; typedef unordered_map<int, int>::iterator iter; typedef stack<int> si; typedef stack<char> sc; bool...
[["-", 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
183
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { string sep = " "; if (v.size()) os << v[0]; for (int i = 1; i < v.size(); i++) os << sep << v[i]; return os; } template <typename T> istream &operator>>(istream &i...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <typename T> ostream &operator<<(ostream &os, vector<T> &v) { string sep = " "; if (v.size()) os << v[0]; for (int i = 1; i < v.size(); i++) os << sep << v[i]; return os; } template <typename T> istream &operator>>(istream &i...
[["-", 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
337
n, d = map(int,input().split()) ans = 0 for i in range(x): x, y = map(int,input().split()) z = (x**2 + y**2)**0.5 if z <= d: ans += 1 print(ans)
n, d = map(int,input().split()) ans = 0 for i in range(n): x, y = map(int,input().split()) z = (x**2 + y**2)**0.5 if z <= d: ans += 1 print(ans)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]]
5
68
#include <cmath> #include <iostream> using namespace std; int main() { int N, count = 0, X, Y; double D; cin >> N >> D; for (int i = 1; i <= N; i++) { cin >> X >> Y; if (sqrt((X * X) + (Y * Y)) <= D) count++; } cout << count; return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { long N, count = 0, X, Y; double D; cin >> N >> D; for (long i = 1; i <= N; i++) { cin >> X >> Y; if (sqrt((X * X) + (Y * Y)) <= D) count++; } cout << count; 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
85
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < n; i++) #define Rep(i, n) for (int i = 1; i <= n; i++) const ll MOD = 1000000007; long long modinv(long long a, long long m = MOD) { long long b = m, u = 1, v = 0; while (b) { long long t = a / b; a -= ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < n; i++) #define Rep(i, n) for (int i = 1; i <= n; i++) const ll MOD = 1000000007; long long modinv(long long a, long long m = MOD) { long long b = m, u = 1, v = 0; while (b) { long long t = a / b; 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, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 39, 78]]
1
186
#include <iostream> using namespace std; int main() { long N, D; cin >> N >> D; int ans; for (int i = 0; i < N; i++) { long x, y; cin >> x >> y; long d = x * x + y * y; ans += (d <= D); } cout << ans << endl; }
#include <iostream> using namespace std; int main() { long N, D; cin >> N >> D; int ans = 0; for (int i = 0; i < N; i++) { long x, y; cin >> x >> y; long d = x * x + y * y; ans += (d <= D * D); } cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 11, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 11, 12, 23, 0, 16, 12, 16, 17, 48]]
1
78
#include <bits/stdc++.h> #include <cmath> #define ll long long using namespace std; int main() { ll n, d, m, cont = 0; cin >> n >> d; while (n--) { ll p, q; cin >> p >> q; m = sqrt(p * p + q * q); if (m == d) { cont++; } } cout << cont; }
#include <bits/stdc++.h> #include <cmath> #define ll long long using namespace std; int main() { ll n, d, m, cont = 0; cin >> n >> d; while (n--) { ll p, q; cin >> p >> q; m = (p * p + q * q); if (m <= d * d) { cont++; } // cout<<m; } cout << cont; }
[["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["-", 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
80
#include <iostream> #include <vector> using namespace std; int main() { int N, D; cin >> N >> D; int counter = 0; for (int i = 0; i < N; i++) { int x, y; cin >> x >> y; if (x * x + y * y < D * D) counter++; } cout << counter << endl; }
#include <iostream> #include <vector> using namespace std; int main() { int N; double D; cin >> N >> D; int counter = 0; for (int i = 0; i < N; i++) { double x, y; cin >> x >> y; if (x * x + y * y <= D * D) { counter++; } } cout << counter << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 57, ...
1
80
N,D = map(int,input().split()) a = 0 for num in range(1,N) : X,Y = map(int,input().split()) if X*X + Y*Y <= D*D : a += 1 print(a)
N,D = map(int,input().split()) a = 0 for num in range(1,N+1) : X,Y = map(int,input().split()) if X*X + Y*Y <= D*D : a += 1 print(a)
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
65
import math def dist(x, y): return math.sqrt(x^2+y^2) # in_values = input() l = list(map(int, input().split())) n = l[0] d = l[1] count = 0 for _ in range(n): l = list(map(int, input().split())) if dist(l[0], l[1]) <= d: count+=1 print(count)
import math def dist(x, y): return math.sqrt(x**2+y**2) # in_values = input() l = list(map(int, input().split())) n = l[0] d = l[1] count = 0 for _ in range(n): l = list(map(int, input().split())) if dist(l[0], l[1]) <= d: count+=1 print(count)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 140], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["-", 0, 37, 0, 652, 3, 4, 0, 657, 17, 140], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 17, 578]]
5
104
#include <bits/stdc++.h> using namespace std; int main() { int N, D, a, b, cnt; cnt = 0; cin >> N >> D; double d; for (int i = 0; i < N; i++) { cin >> a >> b; d = sqrt(a * a + b * b); if (d <= D) cnt++; } cout << cnt << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long int N, D, a, b, cnt; cnt = 0; cin >> N >> D; double d; for (int i = 0; i < N; i++) { cin >> a >> b; d = sqrt(a * a + b * b); if (d <= D) cnt++; } cout << cnt << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
89
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #define debug(var) cerr << (#var) << " = " << (var) << endl; #else #define debug(var) #endif void init() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); } void solve() { int n, d; scanf("%d%d", &n, &d); int ans = 0; for (long long x, y...
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #define debug(var) cerr << (#var) << " = " << (var) << endl; #else #define debug(var) #endif void init() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); } void solve() { int n, d; scanf("%d%d", &n, &d); int ans = 0; for (long long x, y...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]]
1
168
n,m = map(int,input().split()) cnt = 0 for i in range(n): p1,p2 = map(int,input().split()) t = ((p1*p1)+(p2*p2))**(0.5) if t >= m: cnt += 1 print(cnt)
n,m = map(int,input().split()) cnt = 0 for i in range(n): p1,p2 = map(int,input().split()) t = ((p1*p1)+(p2*p2))**(0.5) if t <= m: 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
74
N,D=input().split() N=int(N) D=int(D) cnt = 0 for i in range(N): p1,p2 = map(int,input().split()) t = ((p1*p1)+(p2*p2))**(0.5) if t >= D: cnt += 1 print(cnt)
N,D=input().split() N=int(N) D=int(D) cnt = 0 for i in range(N): p1,p2 = map(int,input().split()) t = ((p1*p1)+(p2*p2))**(0.5) if t <= D: cnt += 1 print(cnt)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]]
5
81
#include <math.h> #include <stdio.h> #include <stdlib.h> int main() { int d, n, a; float f; int i; long long x, y; // double a,b; int count = 0; scanf("%d", &n); scanf("%d", &d); for (i = 0; i < n; i++) { scanf("%d", &x); scanf("%d", &y); // a=pow(x,2); // b=pow(y,2); f = sqrt((po...
#include <math.h> #include <stdio.h> #include <stdlib.h> int main() { int d, n, a; double f; int i; long long x, y; // double a,b; int count = 0; scanf("%d", &n); scanf("%d", &d); for (i = 0; i < n; i++) { scanf("%lld", &x); scanf("%lld", &y); // a=pow(x,2); // b=pow(y,2); f = sqr...
[["-", 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
140
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; int dem = 0; for (int i = 1; i <= a; ++i) { int x, y; cin >> x >> y; if (x * x + y * y <= b * b) { dem++; } } cout << dem; }
#include <iostream> using namespace std; int main() { long long a, b; cin >> a >> b; int dem = 0; for (int i = 1; i <= a; ++i) { long long x, y; cin >> x >> y; if (x * x + y * y <= b * b) { dem++; } } cout << dem; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]]
1
78
n, d = map(int,input().split()) d = d*d sumd = 0 for _ in range(n): a, b = map(int,input().split()) if d <= a**2 + b **2: sumd += 1 print(sumd)
n, d = map(int,input().split()) d = d*d sumd = 0 for _ in range(n): a, b = map(int,input().split()) if d >= a**2 + b **2: sumd += 1 print(sumd)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]]
5
66
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; #define all(v) v.begin(), v.end() const ll mod = 1000000007; ll countBits(ll in) { int res = 0; for (; in > 0; in >>= 1) { if ((in & 0x01) != 0) { res++; } } return res;...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; #define all(v) v.begin(), v.end() const ll mod = 1000000007; ll countBits(ll in) { int res = 0; for (; in > 0; in >>= 1) { if ((in & 0x01) != 0) { res++; } } return res;...
[["-", 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
581
#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 drep(i, n) for (int i = (n)-1; i >= 0; --i) #define all(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) #define bit(n) (1 << (n)) using namespace std; typedef long long ll; typede...
#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 drep(i, n) for (int i = (n)-1; i >= 0; --i) #define all(x) (x).begin(), (x).end() #define SZ(x) ((int)(x).size()) #define bit(n) (1 << (n)) using namespace std; typedef long long ll; typede...
[["-", 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
297
// DPCoded // #include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<string> vs; typedef vector<vi> vvi; ...
// DPCoded // #include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<bool> vb; typedef vector<string> vs; typedef vector<vi> vvi; ...
[["-", 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
210
n, d = map(int, input().split()) ans = 0 for _ in range(n): x, y = map(int, readline().split()) if x ** 2 + y ** 2 <= d ** 2: ans += 1 print(ans)
n, d = map(int, input().split()) ans = 0 for _ in range(n): x, y = map(int, input().split()) if x ** 2 + y ** 2 <= d ** 2: ans += 1 print(ans)
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
63
#include <bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; int cnt = 0; while (n--) { int x, y; cin >> x >> y; if (x * x + y * y <= d * d) { cnt++; } } cout << cnt << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long n, d; cin >> n >> d; int cnt = 0; while (n--) { long long x, y; cin >> x >> y; if (x * x + y * y <= d * d) { cnt++; } } cout << cnt << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]]
1
74
N,D = map(int,input().split()) point = [list(map(int, input().split())) for x in range(N)] count = 0 for i in range(n): if D >= (point[i][0]**2+point[i][1]**2)**0.5: count += 1 print(count)
N,D = map(int,input().split()) point = [list(map(int, input().split())) for x in range(N)] count = 0 for i in range(N): if D >= (point[i][0]**2+point[i][1]**2)**0.5: count += 1 print(count)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]]
5
87
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(), D = sc.nextInt(), t = 0, a, b, d; D *= D; for (int i = 0; i < N; i++) { a = sc.nextInt(); b = sc.nextInt(); d = a * a + b * b; if (d <= D...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(), D = sc.nextLong(), t = 0, a, b, d; D *= D; for (int i = 0; i < N; i++) { a = sc.nextLong(); b = sc.nextLong(); d = a * a + b * b; if (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], ["-", 8, 196, 0, 1, 0, 11, 12, 492, 141, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 492, 141, 22]]
3
126
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 x**2*y**2<=d**2: count += 1 print(count)
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 x**2+y**2<=d**2: count += 1 print(count)
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72]]
5
71
#include <bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; vector<int> x(n), y(n); int cnt = 0; for (int i = 0; i < n; ++i) { cin >> x[i] >> y[i]; if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d) { cnt++; } } cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n; // intは16bit(2^16-1=65535)まで long long d; cin >> n >> d; vector<long long> x(n), y(n); int cnt = 0; for (int i = 0; i < n; ++i) { cin >> x[i] >> y[i]; if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d) { cnt++; } } cout << cnt <...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]]
1
108
#include <bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; vector<int> x(n), y(n); int cnt = 0; for (int i = 0; i < n; ++i) { cin >> x[i] >> y[i]; if (x[i] * x[i] + y[i] * y[i] <= d * d) { cnt++; } } cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n; long long d; cin >> n >> d; vector<long long> x(n), y(n); int cnt = 0; for (int i = 0; i < n; ++i) { cin >> x[i] >> y[i]; if (x[i] * x[i] + y[i] * y[i] <= d * d) { cnt++; } } cout << cnt << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 39, 344, 3, 347, 0, 77, 39, 86, 0, 96]]
1
107
#include <cmath> #include <iostream> using namespace std; int main() { int n, d; int count = 0; int x, y; cin >> n >> d; for (int i = 0; i < n; i++) { cin >> x >> y; if (sqrt(x * x + y * y) <= d) { count++; } } cout << count; return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { int n; long int d; int count = 0; long int x, y; cin >> n >> d; for (int i = 0; i < n; i++) { cin >> x >> y; if (sqrt(x * x + y * y) <= d) { count++; } } cout << count; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
84
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, d; cin >> n >> d; ll ans = 0; for (int i = 0; i < n; i++) { ll a, b; cin >> a >> b; if (a * a + b * b >= d) ans++; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, d; cin >> n >> d; ll ans = 0; for (int i = 0; i < n; i++) { ll a, b; cin >> a >> b; if (a * a + b * b <= d * d) ans++; } cout << ans << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 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
84
#include <iostream> using namespace std; int main() { int n, d; cin >> n >> d; long long d2 = d * d; int sum = 0; for (int i = 0; i < n; i++) { long long a, b; cin >> a >> b; if (a * a + b * b <= d2) sum++; } cout << sum << endl; }
#include <iostream> using namespace std; int main() { int n; long long d; cin >> n >> d; long long d2 = d * d; int sum = 0; for (int i = 0; i < n; i++) { long long a, b; cin >> a >> b; if (a * a + b * b <= d2) sum++; } cout << sum << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
85
#include <iostream> #include <math.h> using namespace std; int main() { int n, d; cin >> n >> d; int x, y, cnt = 0; for (int i = 0; i < n; i++) { cin >> x >> y; if (sqrt(x * x + y * y) <= d) { cnt++; } } cout << cnt << endl; return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { int n, d; cin >> n >> d; double x, y; int cnt = 0; for (int i = 0; i < n; i++) { cin >> x >> y; if (sqrt(x * x + y * y) <= d) { cnt++; } } cout << cnt << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35]]
1
85
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { int count, distance, answer = 0; cin >> count >> distance; for (int i = 0; i < count; i++) { int x, y; cin >> x >> y; if (sqrt(x * x + y * y) <= (double)distance) answer += 1; } cout << answer << endl; }
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { int count, distance, answer = 0; cin >> count >> distance; for (int i = 0; i < count; i++) { double x, y; cin >> x >> y; if (sqrt(x * x + y * y) <= (double)distance) answer += 1; } cout << answer << endl; }
[["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]]
1
84
#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <iostream> #include <map> #include <stdio.h> #include <string> #include <vector> #define INF INT_MAX using namespace std; int N, D; int X, Y; int cnt; int main() { cin >> N >> D; for (int i = 0; i < N; i++) { cin >> X >> Y; ...
#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <iostream> #include <map> #include <stdio.h> #include <string> #include <vector> #define INF INT_MAX using namespace std; int N, D; double X, Y; int cnt; int main() { cin >> N >> D; for (int i = 0; i < N; i++) { cin >> X >> Y;...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
98
n,d = map(int,input().split()) count = 0 for _ 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 _ 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, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]]
5
67
#include <cmath> #include <iostream> using namespace std; int main() { int n, d, p, q; int sum = 0; cin >> n >> d; for (int i; i < n; ++i) { cin >> p >> q; if (p * p + q * q <= d * d) { sum++; } } cout << sum << "\n"; return 0; }
#include <cmath> #include <iostream> using namespace std; int main() { long long n, d, p, q; int sum = 0; cin >> n >> d; for (int i; i < n; i++) { cin >> p >> q; if (p * p + q * q <= d * d) { sum++; } } cout << sum << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
84
#include <bits/stdc++.h> #define ll long long const long double PI = acos(-1); using namespace std; ll gcd(ll a, ll b) { if (b == 0) return a; else return gcd(b, a % b); } bool prime(ll x) { if (x == 2) { return true; } else if (x < 2 || x % 2 == 0) { return false; } else { for (int i = 3;...
#include <bits/stdc++.h> #define ll long long const long double PI = acos(-1); using namespace std; ll gcd(ll a, ll b) { if (b == 0) return a; else return gcd(b, a % b); } bool prime(ll x) { if (x == 2) { return true; } else if (x < 2 || x % 2 == 0) { return false; } else { for (int i = 3;...
[["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40]]
1
203
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back vector<int> g[100003]; vector<int> v(100003); queue<int> q; int main() { int n, k; cin >> n >> k; int c = 0; for (int i = 0; i < n; i++) { int p, q; cin >> p >> q; if (sqrt(p * p + q * q) <= k) { c++; ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back vector<int> g[100003]; vector<int> v(100003); queue<int> q; int main() { ll n, k; cin >> n >> k; ll c = 0; for (int i = 0; i < n; i++) { ll p, q; cin >> p >> q; if (sqrt(p * p + q * q) <= k) { c++; ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 78]]
1
112
#include <cmath> #include <iostream> using namespace std; int main(void) { int N, D; int x, y; int 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; }
#include <cmath> #include <iostream> using namespace std; int main(void) { long long N, D; long long x, y; int 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; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
82
#include <stdio.h> typedef long long ll; int main() { int n, ans = 0; ll d, x, y; scanf("%d%lld", &n, &d); d = d * d; while (n--) { scanf("%lld%lld", &x, y); if (x * x + y * y <= d) ans++; } printf("%lld\n", ans); return 0; }
#include <stdio.h> typedef long long ll; int main() { int n, ans = 0; ll d, x, y; scanf("%d%lld", &n, &d); d = d * d; while (n--) { scanf("%lld%lld", &x, &y); if (x * x + y * y <= d) ans++; } printf("%lld\n", ans); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
93
#include <iostream> #include <math.h> using namespace std; int main(void) { int N, D, Xi, Yi; int i; int count = 0; cin >> N; cin >> D; for (i = 0; i < N; i++) { cin >> Xi; cin >> Yi; if (sqrt(Xi * Xi + Yi * Yi) <= D) { count++; } } cout << count; return 0; }
#include <iostream> #include <math.h> using namespace std; int main(void) { int long long N, D, Xi, Yi; int i; int count = 0; cin >> N; cin >> D; for (i = 0; i < N; i++) { cin >> Xi; cin >> Yi; if (sqrt(Xi * Xi + Yi * Yi) <= D) { count++; } } cout << count; return 0; }
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 0, 42, 0, 22]]
1
90
#include <bits/stdc++.h> using namespace std; int main() { int long long N, D; cin >> N >> D; int count = 0; int long long a[N], b[N]; for (int i = 1; i < N; i++) { cin >> a[i]; cin >> b[i]; if (a[i] * a[i] + b[i] * b[i] <= D * D) { count++; } } cout << count << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int long long N, D; cin >> N >> D; int count = 0; int long long a[N], b[N]; for (int i = 1; i <= N; i++) { cin >> a[i]; cin >> b[i]; if (a[i] * a[i] + b[i] * b[i] <= D * D) { count++; } } cout << count << endl; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
110
#include <cmath> #include <iostream> using namespace std; int main(void) { int N, D; cin >> N >> D; int ans = 0; for (int i = 0; i < N; i++) { int x, y; cin >> x >> y; double distance = sqrt(x * x + y * y); if (distance <= D) ans++; } cout << ans << endl; }
#include <cmath> #include <iostream> using namespace std; int main(void) { int N, D; cin >> N >> D; int ans = 0; for (int i = 0; i < N; i++) { long long x, y; cin >> x >> y; double distance = sqrt(x * x + y * y); if (distance <= D) ans++; } cout << ans << endl; }
[["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]]
1
87
/* START BY THE NAME OF ALMIGHTY ALLAH THIS WONT BE ACCEPTED STOP_GIVING_UP ██╗███████╗████████╗██╗ █████╗ ██╗ ██╗ ██║██╔════╝╚══██╔══╝██║██╔══██╗██║ ██╔╝ ██║███████╗ ██║ ██║███████║█████╔╝ ██║╚════██║ ██║ ██║██╔══██║██╔═██╗ ██║███████║ ██║ ██║██║ ██║██║ ██╗ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ *...
/* START BY THE NAME OF ALMIGHTY ALLAH THIS WONT BE ACCEPTED STOP_GIVING_UP ██╗███████╗████████╗██╗ █████╗ ██╗ ██╗ ██║██╔════╝╚══██╔══╝██║██╔══██╗██║ ██╔╝ ██║███████╗ ██║ ██║███████║█████╔╝ ██║╚════██║ ██║ ██║██╔══██║██╔═██╗ ██║███████║ ██║ ██║██║ ██║██║ ██╗ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ *...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
234
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d; cin >> n >> d; long long int count = 0; for (long long int i = 0; i < n; i++) { long long int x, y; cin >> x >> y; long long int dis = x * x + y * y; if (dis < d * d) { count++; } } cout << count << en...
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d; cin >> n >> d; long long int count = 0; for (long long int i = 0; i < n; i++) { long long int x, y; cin >> x >> y; long long int dis = x * x + y * y; if (dis <= d * d) { count++; } } cout << count << e...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
95
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n, l, c = 0; cin >> n >> l; while (n--) { ll x, y; cin >> x >> y; if (l * l == x * x + y * y) c++; } cout << c; return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n, l, c = 0; cin >> n >> l; while (n--) { ll x, y; cin >> x >> y; if (l * l >= x * x + y * y) c++; } cout << c; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
72
#include <bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; long long int x, y, count = 0; for (int i = 0; i < n; ++i) { cin >> x >> y; long long int d1 = sqrt(pow(x, 2) + pow(y, 2)); if (d1 <= d) count++; } cout << count; }
#include <bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; long long int x, y, count = 0; for (int i = 0; i < n; ++i) { cin >> x >> y; double d1 = sqrt(pow(x, 2) + pow(y, 2)); if (d1 <= d) count++; } cout << count; }
[["-", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 7, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]]
1
91
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define HUGE_NUM 1000000000000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; #define SIZE 200005 struct Info { ll x, y; }; int N; ll D; Info info[SIZE]; int main() { sc...
#include <bits/stdc++.h> typedef long long int ll; typedef unsigned long long int ull; #define BIG_NUM 2000000000 #define HUGE_NUM 1000000000000000000 #define MOD 1000000007 #define EPS 0.000000001 using namespace std; #define SIZE 200005 struct Info { ll x, y; }; int N; ll D; Info info[SIZE]; int main() { sc...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
175
#include <cmath> #include <iostream> int main(int, char **) { int N, D; std::cin >> N >> D; int count = 0; int x, y; for (int i = 0; i < N; i++) { std::cin >> x >> y; if (sqrt((double)(x * x + y * y)) <= D) { count++; } } std::cout << count << std::endl; }
#include <cmath> #include <iostream> int main(int, char **) { int N, D; std::cin >> N >> D; int count = 0; double x, y; for (int i = 0; i < N; i++) { std::cin >> x >> y; if (sqrt(x * x + y * y) <= D) { count++; } } std::cout << count << std::endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 51, 16, 31, 2, 3, 4, 0, 74, 0, 24], ["-", 31, 2, 3, 4, 0, 74, 39, 77, 39, 40], ["-", 51, 16, 31, 2, 3, 4, 0, 74, 0, 25], ["-", 31, 2, 3, 4, 0, 74, 51, 23, 0, 24], ["-", 31, 2, 3, 4, 0, 74, 51, 23, 0, 25]]
1
97
#pragma region noncode #include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll INF = 1'010'000'000'000'000'017LL; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define SORT(v) sort(all(v)) #define TROS(v) sort(all(v), std::greater<Type>()); #pragma endre...
#pragma region noncode #include <bits/stdc++.h> using namespace std; using ll = long long; constexpr ll INF = 1'010'000'000'000'000'017LL; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(v) v.begin(), v.end() #define SORT(v) sort(all(v)) #define TROS(v) sort(all(v), std::greater<Type>()); #pragma endre...
[["-", 0, 43, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 43, 39, 344, 3, 347, 0, 77, 39, 78]]
1
148
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n; long long d; cin >> n >> d; int ans = 0; for (int i = 0; i < n; i++) { long long x, y; cin >> x >> y; if (x * x + y * y <= d) { ans++; } } cout << ans << endl; }
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n; long long d; cin >> n >> d; int ans = 0; for (int i = 0; i < n; i++) { long long x, y; cin >> x >> y; if (x * x + y * y <= d * d) { ans++; } } cout << ans << endl; }
[["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
85
#include <bits/stdc++.h> using namespace std; #define ios \ ios_base::sync_with_stdio(0); \ cin.tie(NULL); \ cout.tie(NULL) #define ll lon...
#include <bits/stdc++.h> using namespace std; #define ios \ ios_base::sync_with_stdio(0); \ 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
144
#include <bits/stdc++.h> #define F first #define S second #define ll long long #define pb push_back #define endl '\n' using namespace std; const int MOD = 1e9 + 7; const int N = 510; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, x; cin >> n >> x; int ans = 0; while (n--) {...
#include <bits/stdc++.h> #define F first #define S second #define ll long long #define pb push_back #define endl '\n' using namespace std; const int MOD = 1e9 + 7; const int N = 510; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); ll n, x; cin >> n >> x; int ans = 0; while (n--) { ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29]]
1
117
n,d = map(int,input().split()) ans = 0 import numpy as np for i in range(n): x,y = map(int,input().split()) if np.norm(np.array([x,y]),ord=2) <= d: ans+=1 print(ans)
n,d = map(int,input().split()) ans = 0 import numpy as np for i in range(n): x,y = map(int,input().split()) if np.linalg.norm(np.array([x,y]),ord=2) <= d: ans+=1 print(ans)
[["+", 15, 666, 0, 652, 63, 319, 500, 319, 319, 22], ["+", 0, 57, 15, 666, 0, 652, 63, 319, 0, 131]]
5
77
#include <bits/stdc++.h> using namespace std; int a, b; int main() { cin >> a >> b; int i, x, y, total = 0; double s; for (i = 1; i <= a; i++) { cin >> x >> y; s = sqrt(x * x + y * y); if (s <= b) total++; } cout << total; return 0; }
#include <bits/stdc++.h> using namespace std; int a, b; int main() { cin >> a >> b; int i, x, y, total = 0; double s; for (i = 1; i <= a; i++) { cin >> x >> y; s = sqrt(1ll * x * x + 1ll * y * y); if (s <= b) total++; } cout << total; return 0; }
[["+", 3, 4, 0, 16, 31, 16, 31, 16, 31, 13], ["+", 3, 4, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 3, 4, 0, 16, 12, 16, 31, 16, 31, 13], ["+", 3, 4, 0, 16, 12, 16, 31, 16, 17, 48]]
1
87
#include <cmath> #include <cstdio> using namespace std; long long dis(long long x, long long y) { return x * x + y * y; } long long n, d, x, y, ans; int main() { scanf("%lld%lld", &n, &d); for (register long long i = 1; i <= n; ++i) { scanf("%lld%lld", &x, &y); if (dis(x, y) >= d * d) ++ans; } pri...
#include <cmath> #include <cstdio> using namespace std; long long dis(long long x, long long y) { return x * x + y * y; } long long n, d, x, y, ans; int main() { scanf("%lld%lld", &n, &d); for (register long long i = 1; i <= n; ++i) { scanf("%lld%lld", &x, &y); if (dis(x, y) <= d * d) ++ans; } pri...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
122
#include <bits/stdc++.h> using namespace std; int main(void) { int n, d; cin >> n >> d; long long a, b; int count = 0; for (int i = 0; i < n; i++) { cin >> a >> b; if (a * a + b * b <= d * d) { count++; } } cout << count << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long n, d; cin >> n >> d; long long a, b; int count = 0; for (int i = 0; i < n; i++) { cin >> a >> b; if (a * a + b * b <= d * d) { count++; } } 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
85
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // 4 int d; // 5 cin >> d; int wievielmal = 0; for (int i = 0; i < n; i++) { // X, Y einlesen (das wird wiederholt!) int x; int y; cin >> x; cin >> y; if (x * x + y * y <= d * d) { wievielmal++; ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // 4 long long d; // 5 cin >> d; int wievielmal = 0; for (int i = 0; i < n; i++) { // X, Y einlesen (das wird wiederholt!) long long x; long long y; cin >> x; cin >> y; if (x * x + y * y <= d * d) { ...
[["-", 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
92
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { ll N, D; cin >> N >> D; int cnt = 0; rep(i, N) { ll x, y; cin >> x >> y; if (x * x + y * y >= D * D) { cnt++; } } cout << cnt << ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { ll N, D; cin >> N >> D; int cnt = 0; rep(i, N) { ll x, y; cin >> x >> y; if (x * x + y * y <= D * D) { cnt++; } } cout << cnt << ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
97
N, D = map(int, input().split()) A = 0 for point in range(N): p, q = map(int, input().split()) dis = q**2 + q**2 if(dis <= D**2): A += 1 print (A)
N, D = map(int, input().split()) A = 0 for point in range(N): p, q = map(int, input().split()) dis = p**2 + q**2 if(dis <= D**2): A += 1 print (A)
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22]]
5
68
#include <iostream> using namespace std; int main() { long long n, d; cin >> n >> d; int x[n]; int y[n]; long long c; c = 0; long long i; for (i = 1; i <= n; i++) { cin >> x[i]; cin >> y[i]; if (x[i] * x[i] + y[i] * y[i] <= d * d) { c++; } } cout << c << endl; }
#include <iostream> using namespace std; int main() { long long n, d; cin >> n >> d; long x[n]; long y[n]; long long c; c = 0; long long i; for (i = 1; i <= n; i++) { cin >> x[i]; cin >> y[i]; if (x[i] * x[i] + y[i] * y[i] <= d * d) { c++; } } cout << c << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
1
114
#include <bits/stdc++.h> #define boost \ ios_base::sync_with_stdio(0); \ cin.tie(); \ cout.tie() #define all(x) x.begin(), x.end() #defi...
#include <bits/stdc++.h> #define boost \ ios_base::sync_with_stdio(0); \ cin.tie(); \ cout.tie() #define all(x) x.begin(), x.end() #defi...
[["-", 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
116
#include <math.h> #include <stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); long i, x, y, count = 0; m *= m; for (i = 0; i < n; i++) { scanf("%ld %ld", &x, &y); if (x * x + y * y <= m) { count++; } } printf("%ld", count); }
#include <math.h> #include <stdio.h> int main() { long int n, m; scanf("%ld %ld", &n, &m); long int i, x, y, count = 0; m *= m; for (i = 0; i < n; i++) { scanf("%ld %ld", &x, &y); if (x * x + y * y <= m) { count++; } } 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, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
0
97
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d; cin >> n >> d; long long int count = 0; long long int j = d * d; while (n--) { int p, q; cin >> p >> q; long long int r = p * p + q * q; if (r <= j) { count++; } } cout << count << endl; return 0; }...
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d; cin >> n >> d; long long int count = 0; long long int j = d * d; while (n--) { long long int p, q; cin >> p >> q; long long int r = p * p + q * q; if (r <= j) { count++; } } cout << count << endl; r...
[["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]]
1
92
import java.io.PrintWriter; import java.util.*; public class Main { void run() { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int n = sc.nextInt(); int d = sc.nextInt(); int ans = 0; for (int i = 0; i < n; i++) { int x = sc.nextInt(); int y...
import java.io.PrintWriter; import java.util.*; public class Main { void run() { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int n = sc.nextInt(); long d = sc.nextLong(); int ans = 0; for (int i = 0; i < n; i++) { long x = sc.nextLong(); l...
[["-", 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, 7, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 7, 8, 196, 0, 503, 39, 506, 0, 96]]
3
183
#include <bits/stdc++.h> using namespace std; int main() { int N, D; cin >> N >> D; int X, Y; int d = D * D; int c = 0; for (int i = 0; i < N; i++) { cin >> X >> Y; int p = X * X + Y * Y; if (p <= d) { c++; } } cout << c << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double N, D; cin >> N >> D; double X, Y; double d = D * D; int c = 0; for (int i = 0; i < N; i++) { cin >> X >> Y; double p = X * X + Y * Y; if (p <= d) { c++; } } cout << c << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]]
1
90
#include <bits/stdc++.h> using namespace std; int main() { int n, d, count; count = 0; cin >> n >> d; for (int i = 0; i < n; i++) { int x, y; 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, count; count = 0; 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; }
[["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40]]
1
82
#include <bits/stdc++.h> using namespace std; int n; double d; int x[200010]; int y[200010]; int main() { cin >> n >> d; for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; } int cnt = 0; for (int i = 0; i < n; i++) { double k = sqrt(x[i] * x[i] + y[i] * y[i]); if (k <= d) { cnt++; } } ...
#include <bits/stdc++.h> using namespace std; int n; double d; long long x[200010]; long long y[200010]; int main() { cin >> n >> d; for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; } int cnt = 0; for (int i = 0; i < n; i++) { double k = sqrt(x[i] * x[i] + y[i] * y[i]); if (k <= d) { cnt++...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
131
N, D = [int(i) for i in input().split()] X = int(0) Y = int(0) B = int(0) Z = int(0) for i in range(N): A = [] A = [int(N) for N in input().split()] X = A[0] Y = A[1] Z = ((X**2+Y**2)**0.5) if Z<= 5: B+=1 print(B)
N, D = [int(i) for i in input().split()] X = int(0) Y = int(0) B = int(0) Z = int(0) for i in range(N): A = [] A = [int(N) for N in input().split()] X = A[0] Y = A[1] Z = ((X**2+Y**2)**0.5) if Z<= D: B+=1 print(B)
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]]
5
113
#include <cmath> #include <iostream> #include <limits> using namespace std; int main() { // スペース区切りの整数の入力 int b, c; cin >> b >> c; int count = 0; for (int i = 0; i < b; i++) { int n, m; cin >> n >> m; if (((n * n) + (m * m)) <= c * c) { count++; } } cout << count << endl; return 0...
#include <cmath> #include <iostream> #include <limits> using namespace std; int main() { // スペース区切りの整数の入力 long b, c; cin >> b >> c; int count = 0; for (int i = 0; i < b; i++) { long n, m; cin >> n >> m; if (((n * n) + (m * m)) <= c * c) { count++; } } cout << count << endl; return...
[["-", 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
94
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define all(v) v.begin(), v.end() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define Rep(n) for (ll _ = 0; _ < (ll)(n); _++) template <class S> S sum(vector<S> &a) { return accumulate(all(a), S()); } template <class S> ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define all(v) v.begin(), v.end() #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define Rep(n) for (ll _ = 0; _ < (ll)(n); _++) template <class S> S sum(vector<S> &a) { return accumulate(all(a), S()); } template <class S> ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
414
from math import sqrt n,d = map(int,input().strip().split()) cnt = 0 for i in range(n): x,y = map(int,input().strip().split()) if x*x+y*y >= d*d: cnt+=1 print(cnt)
from math import sqrt n,d = map(int,input().strip().split()) cnt = 0 for i in range(n): x,y = map(int,input().strip().split()) # print(x,y) if x*x+y*y <= d*d: # print(x,y) 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
75
n,d = list(map(int, input().split())) count = 0 for i in range(n): x,y = list(map(int, input.split())) if (x**2 + y**2)**0.5 <= d: count += 1 print(count)
n,d = list(map(int, input().split())) count = 0 for i in range(n): x,y = list(map(int, input().split())) if (x**2 + y**2)**0.5 <= d: 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
69
#include <bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; int cnt = 0; for (int i = 0; i < n; i++) { int x, y; cin >> x >> y; if (x * x + y * y <= d * d) { cnt++; } } cout << cnt << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; long long d; cin >> n >> d; int cnt = 0; for (int i = 0; i < n; i++) { long long x, y; cin >> x >> y; if (x * x + y * y <= d * d) { cnt++; } } cout << cnt << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 7, 8, 9, 0, 43, 39, 40], ["+", 0, 7, 8, 9, 0, 43, 39, 86, 0, 96]]
1
83
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, d; cin >> n >> d; ll x, y; ll c = 0; for (ll i = 0; i < n; i++) { cin >> x >> y; ll p = sqrt(x * x + y * y); if (p >= d) { c++; } } cout << c << "\n"; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, d; cin >> n >> d; ll x, y; ll c = 0; for (ll i = 0; i < n; i++) { cin >> x >> y; ll p = (x * x + y * y); if (p <= d * d) { c++; } } cout << c << "\n"; }
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 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
93
#include <iostream> using namespace std; #define ll long long int main() { ll n, d, c = 0; cin >> n >> d; ; while (n--) { ll x, y; cin >> x >> y; if ((x * x) + (y * y) == (d * d)) c++; } cout << c << endl; return 0; }
#include <iostream> using namespace std; #define ll long long int main() { ll n, d, c = 0; cin >> n >> d; ; while (n--) { ll x, y; cin >> x >> y; if ((x * x) + (y * y) <= (d * d)) c++; } cout << c << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
81
#include <bits/stdc++.h> using namespace std; int main() { long long n, d, c; double s; cin >> n >> d; long long int x[n], y[n]; c = 0; for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; if ((sqrt(pow(x[i], 2) + pow(y[i], 2))) >= d) { c++; } } cout << c << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long n, d, c; cin >> n >> d; long long int x[n], y[n]; c = 0; for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; if ((sqrt(pow(x[i], 2) + pow(y[i], 2))) <= d) { c++; } } cout << c << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
114
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); int n, p, q, br = 0; double d; cin >> n >> d; for (; n != 0; n--) { cin >> p >> q; if (sqrt(p * p + q * q) >= d) br++; } cout << br << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); long long n, p, q, br = 0; double d; cin >> n >> d; for (; n != 0; n--) { cin >> p >> q; if (sqrt(p * p + q * q) <= d) br++; } cout << br << '\n'; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
100
#include <bits/stdc++.h> using namespace std; int main() { // Code here bby int n, d, res; cin >> n >> d; res = 0; while (n--) { int x, y; cin >> x >> y; double dist = sqrt((x * x) + (y * y)); if (dist <= d) { res++; } } cout << res << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { // Code here bby int n, d, res; cin >> n >> d; res = 0; while (n--) { ll x, y; cin >> x >> y; double dist = sqrt((x * x) + (y * y)); if (dist <= d) { res++; } } cout << res << endl; }
[["+", 36, 36, 36, 36, 0, 30, 0, 134, 0, 157], ["+", 36, 36, 0, 30, 0, 134, 39, 86, 0, 96], ["+", 36, 36, 36, 36, 0, 30, 0, 134, 49, 78], ["+", 36, 36, 36, 36, 0, 30, 0, 134, 0, 35], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78]]
1
83
#include <bits/stdc++.h> #define ll long long #define pb push_back using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, d; cin >> n >> d; int ans = 0; while (n--) { int x, y; cin >> x >> y; if (sqrt((x * x) + (y * y)) <= d) ans++; } cout << ans << "\n"; ...
#include <bits/stdc++.h> #define ll long long #define pb push_back using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, d; cin >> n >> d; int ans = 0; while (n--) { ll x, y; cin >> x >> y; if (sqrt((x * x) + (y * y)) <= d) ans++; } cout << ans << "\n"; ...
[["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 52, 8, 9, 0, 43, 39, 78]]
1
99
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d; cin >> n >> d; long long int ans = 0; while (n--) { long long int x, y; cin >> x >> y; long long int j = (x * x) + (y * y); if (j == (d * d)) ans++; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long int n, d; cin >> n >> d; long long int ans = 0; while (n--) { long long int x, y; cin >> x >> y; long long int j = (x * x) + (y * y); if (j <= (d * d)) ans++; } cout << ans << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
88
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef set<int> si; typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair<int, int> pii; #define mp make_pair #define pb push_back #define X first #define Y second #define FOR(i, a, b) for (int i = a; i <= b; i+...
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef set<int> si; typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair<int, int> pii; #define mp make_pair #define pb push_back #define X first #define Y second #define FOR(i, a, b) for (int i = a; i <= b; i+...
[["-", 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
205