#include #include #define MAX 111 using namespace std; int n,m, tmp; struct disc { int ten; int vt; }; disc a[MAX]; void update(int x) { for (int i=1; i<=n ; i++) { if (a[i].vt> n >> m; for (int i=1; i<=n; i++) { a[i].ten=i; a[i].vt=i; } for (int i=1; i<=m; i++) { cin >> tmp; update(tmp); } sort(a+1,a+n+1,cmp); for (int i=1; i<=n; i++) cout<< a[i].ten<<" "; return 0; }