#include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; int kadomatsu[101]; int main() { int m=0; cin>>m; for(int i=0; i>tmp; kadomatsu[i] = tmp; } bool judge = true; int a=0; vector > ans; while(judge){ judge = false; for(int i=0; i kadomatsu[i+1]){ int tmp = kadomatsu[i]; kadomatsu[i] = kadomatsu[i+1]; kadomatsu[i+1] = tmp; judge = true; a++; pair p(i,i+1); ans.push_back(p); /* cout<>b; return 0; }