# include<bits/stdc++.h> using namespace std; int num[105][105]; int pre[105][105]; int dp[105][105]; void print(int x, int y){ if(pre[y][x] == x){ printf("%d ", x); return; } print(pre[y][x], y-1); printf("%d ", x); } int main(){ int x, y; scanf("%d %d&quo...