Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
68119 | 王籽易 | 放大的X | C++ | Wrong Answer | 0 | 9 MS | 308 KB | 561 | 2023-02-02 15:13:25 |
#include <bits/stdc++.h> using namespace std; int t,x; int ans[80][80]; int main(){ ios::sync_with_stdio(false); cin>>t; while(t--){ cin>>x; for(int i=1;i<=x;i++){ for(int j=1;j<=x;j++){ if(ans[i][j]==1){ ans[i][j]=0; } } } for(int i=1;i<=x;i++){ int j=x-i+1; ans[i][j]=1; j=i; ans[i][j]=1; } for(int i=1;i<=x;i++){ for(int j=1;j<=x;j++){ if(ans[i][j]==1){ cout<<"x"; } else{ cout<<" "; } } cout<<endl; } cout<<endl; } return 0; }