Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <string>#include <set>using namespace std;set<int> sameset;struct EqPair {int a, b;int tag;};const int maxk = 1000;EqPair eqs[maxk];string gene;int k;int chCnt[4];inline void clearCnt() {for (int i = 0; i < 4; i++)chCnt[i] = 0;}inline int getInd(char ch) {switch (ch) {case 'A':return 0;case 'T':