杭电OJ 1104(C++)
#include <iostream>#include <string>#include <cstring>#include <queue>using namespace std;const int MAXN = 1010;int vis[MAXN * MAXN];int n, k, m, ans;struct node{ ...