今晚有道在线笔试解题报告,仅供参考。   (感谢某ACM队长提供解题报告)   洗牌   分析:   根据题目描述的,开辟一个数组模拟一下过程就好了。   参考代码:  #include <stdio.h> #include <string.h> #include <iostream> #include <algorithm> using namespace std; const int N = 1005; int n, k, a[N], b[N]; int main(){ int t; scanf("%d", &t); while(t ...