Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142147 Kevin 放大的X C++ Presentation Error 94 MS 276 KB 340 2025-12-31 15:59:44

Tests(0/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; }