#include #include #include #include #include using namespace std; const int inf=1e9; const vector tast={"QWERTYUIOP","ASDFGHJKL","ZXCVBNM"}; pair poz[200]; int d[110][30][30]; char sir[110]; int dist(int a,int b) { return abs(poz[a].first-poz[b].first)+abs(poz[a].second-poz[b].second); } int main() { //freopen("file.in", "r", stdin); //freopen("file.out", "w", stdout); for(int i=0;i<3;i++) for(int j=0;j