提交时间:2023-02-02 16:18:46
运行 ID: 68156
#include<bits/stdc++.h> using namespace std; int main(){ int n,beishu; cin>>n; while(cin>>beishu){ if(beishu%2==1){ for(int i=0;i<beishu;i++){ int h=0; for(int j=0;j<beishu;j++){ if(j==i||j==beishu-i-1){ h++; cout<<"X"; }else cout<<" "; } cout<<endl; } cout<<endl; } else cout<<"Are you OK?"; } return 0; }