Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
68154 | 石利伟 | 放大的X | C++ | 输出格式错误 | 0 | 9 MS | 260 KB | 370 | 2023-02-02 16:18:04 |
#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; } } else cout<<"Are you OK?"; } return 0; }