递归==
(注: 博客作为交流使用,请勿抄袭应付作业)
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <queue>
#include <vector>
#include <set>
#include <stack>
#include <map>
#include <climits>
using namespace std;
typedef long long ll;
const int maxn = 100 + 7, INF = 0x3f3f3f3f, mod = 1e9 + 7;
int n;
int a[maxn], b[maxn];
void print(int l1, int r1, int l2, int r2) {
if(l1 > r1 || l2 > r2) return;
//cout << l1 << " " << r1 << " == " << l2 << " " << r2 << endl;
printf(" %d", a[r1]);
for(int i = l2; i <=