Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
68158 陈路垚 放大的X C++ 通过 100 10 MS 256 KB 290 2023-02-02 16:19:32

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int t,n; cin>>n; for(int i=1;i<=n;i++){ cin>>t; for(int j=1;j<=t;j++){ for(int k=1;k<=t;k++){ if((k==j)||(j+k==t+1)) cout<<"X"; else cout<<" "; } cout<<endl; } cout<<endl; } return 0; }


测评信息: