Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
332849 顾子丞 【C3-3】输出直角梯形Ⅱ C++ 通过 100 2 MS 244 KB 297 2025-07-15 15:24:20

Tests(1/1):


#include <iostream> using namespace std; void a(int n) { for(int i=1; i<=n; i++) { int cnt = n + 2*(i-1); for(int j=0; j<cnt; j++) { cout << "A"; } cout << endl; } } int main() { int n; cin >> n; a(n); return 0; }


测评信息: