接着写代码 这题和插队问题很像呀!!! #include<cstdio> #include<iostream> using namespace std; int n,k,a[101]; int main() {