| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 48153 | yuhaoyu | 【例38.3】 X战警 | C++ | No Test Data | 0 MS | 0 KB | 287 | 2024-05-27 21:12:38 |
#include<iostream> using namespace std; int main() { int n; cin>>n; int a=1,b=n; for(int i=1;i<=n;i++) { for(int j=1;j<=n;j++) { if(j==a||j==b) { cout<<'X'; } else { cout<<' '; } } cout<<endl; a++; b--; } }