w32334wswsw
2024-02-04 19:58:17
发布于:四川
#include<bits/stdc++.h>
using namespace std;
int main(){
int a[9],c=0,d=0;
for(int i=1;i<=8;i++){
cin>>a[i];
if(a[i]i){
c++;
}
}
for(int i=7;i>=0;i--){
if(a[i]i){
d++;
}
}
if(c8){
cout<<"ascending";
}
else if(d8){
cout<<"descending";
}
else if(c!=8 or d!=8){
cout<<"mixed";
}
return 0;
}
这里空空如也
有帮助,赞一个