#include<iostream> #include<string> #include<queue> using namespace std; struct Complex{ int real,img; Complex(int real,int img):real(real),img(img){} bool operator < (Complex c) const{ return real*real+img*img < c.real*c.real+c.img*c.img; } }; int ...