#include #include using namespace std; int p[10000]; int q[10000]; int r[10000]; int now[1000]; int s[10000]; int t[10000]; int main(){ int a,b; scanf("%d%d",&a,&b); for(int i=0;ii;j--){ s[sz]=j; t[sz]=j+1; swap(now[j],now[j-1]); sz++; } } printf("%d\n",sz); for(int i=0;i