Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142148 Kevin 放大的X C++ Accepted 47 MS 272 KB 339 2025-12-31 16:01:15

Tests(1/1):


Code:

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