| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 68079 | 朱宸瑜 | 放大的X | C++ | Accepted | 100 | 10 MS | 268 KB | 410 | 2023-02-02 13:47:16 |
#include <bits/stdc++.h> using namespace std; int t,n,x[80][80],a=0; int main(){ cin>>t; while(t--){ cin>>n; a=0; memset(x,0,sizeof(x)); for(int i=0;i<n;i++){ x[i][n-a-1]=1; x[i][a]=1; a++; } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(x[i][j]){ cout<<"X"; }else{ cout<<" "; } } cout<<endl; } cout<<endl; } return 0; }