- circle, Geometric, Mathematical

Check if chords of a Circle are symmetric after some rotation

  #include using namespace std;  vector calculateDivisors(int N){    vector div;    for (int i = 1; i * i A[i].second) {            swap(A[i].first, A[i].second);        }        st.insert(A[i]);    }          vector div = calculateDivisors(N);          for (auto x : div) {        bool exist = 1;        for (int i = 0; i < M; i++) {            int dx = (A[i].first + x) % N;            int dy = (A[i].second + x) % N;            if (dx > dy) {                swap(dx, dy);            }            if (st.find({ dx, dy }) != st.end()) {                                              }            else {                                  exist = false;                break;            }        }                                  if (exist) {            cout