Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
336551 | 李铭泽 | 【C3-T】打印长方形(二) | C++ | 通过 | 100 | 2 MS | 248 KB | 246 | 2025-07-29 08:23:25 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; for(int i=0;i<n;i++){ for(int j=i;j>=0&&i-j<m;j--) cout<<char('A'+j); for(int j=1;j<m-i;j++) cout<<char('A'+j); cout<<endl; } return 0; }