#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){ return a.x < b.x; } // for binary_search struct CoinOpr{ bool operator()(const Coin* a, const Coin* b){ 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; int dy = cy - itr->y; DBG(dx); DBG(dy); if(dx*dx + dy*dy < 20*20){ flg_collided = true; break; } } DBG(flg_collided); if(!flg_collided) field.insert(coins[i]); } } cout << field.size() << endl; return 0; }