#include #include #include #include using namespace std; #define cerr cerr << "[DBG] " #define DBG(x) cerr << #x << ": " << x << endl // http://genkisugimoto.com/jp/blog/procon/2015/04/15/print-debug-technique-in-cpp.html template ostream& operator<<(ostream& s, const pair& p) {return s << "(" << p.first << ", " << p.second << ")";} template ostream& operator<<(ostream& s, const vector& v) { for (int i = 0; i < v.size(); ++i) { s << v[i]; if (i < v.size() - 1) s << "\t"; } return s; } typedef long long ll; struct Coin{ int x; int y; }; // for set bool operator<(const Coin &a, const Coin &b){ if(a.x==b.x){ return a.y < b.y; } return a.x < b.x; } typedef set::iterator CSItr; // yukicoder problems/476 No.202 int main(){ int n; cin >> n; vector coins(n); for(int i=0; i> c.x >> c.y; coins[i] = c; } set field; for(int i=0; ix; ll dy = cy - itr->y; //DBG(dx); //DBG(dy); if(dx*dx + dy*dy < 20*20){ //DBG(dx*dx+dy*dy); flg_collided = true; break; } } //DBG(flg_collided); if(!flg_collided) { field.insert(coins[i]); } } } cout << field.size() << endl; return 0; }