Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
68156 石利伟 放大的X C++ 通过 100 13 MS 252 KB 386 2023-02-02 16:18:46

Tests(1/1):


#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; }


测评信息: