Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
5035 | A班-许锘林 | 倒三角形之二 | C++ | 通过 | 100 | 1 MS | 268 KB | 322 | 2025-01-19 16:16:51 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int number = n; for(int i = 0;i < number;i++) { for(int j = number - 1;j >= n;j--) { cout<<" "; } for(int k = 0;k < n;k++) { cout<<"*"; } n -= 1; cout<<endl; } return 0; }