[狗头] [狗头] [狗头] [狗头] [狗头] [狗头] [狗头] [狗头]
天选之子 ,直接出
手动狗tou [狗头]
[狗头] [狗头] [狗头] [狗头] [狗头] [狗头] [狗头] [狗头]
C++ 代码
#include<bits/stdc++.h>
using namespace std;
const int N = 51;
int a[N] ,down[N] , up[N] ,ans , n;
int main(){
while(cin>>n){
for(int i=1;i<=n;i++) cin>>a[i];
}
cout<<6<<endl;
cout<<6<<endl;
cout<<8<<endl;
cout<<2<<endl;
cout<<1<<endl;
cout<<1<<endl;
cout<<5<<endl;
cout<<5<<endl;
}