http://acm.hust.edu.cn/vjudge/contest/121377#problem/G
根据题意模拟即可
#include<stdio.h> #include<string.h> #include<math.h> #include<queue> using namespace std; #define maxn 300 char a[maxn*maxn], b[maxn*maxn], s1[maxn], s2[maxn], s[maxn*maxn]; int solve(int n, int step) { int j=0; for(int i=0; i<n; i++) { a[j++] = s2[i]; a[j++] = s1[i]; } a[j]='