Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
68213 王籽易 放大的X C++ Accepted 100 9 MS 252 KB 289 2023-02-03 13:40:33

Tests(1/1):


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


Judgement Protocol: