就是为什么这样就绝对会保证有解。
for(int i = 1; i <= 2*n; i += 2) if(co[i] < co[i+1]) cout << i << endl; else cout << i + 1 << endl;