Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5525 D班-罗炜翰 倒三角形之二 C++ 通过 100 1 MS 264 KB 259 2025-02-09 17:48:54

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int main() { int a,n; cin>>n; for(int i = n;i >= 1;i--) { a = n - i; for(int j = a;j >= 1;j--) { cout<<' '; } for(int k = i;k >= 1;k--) { cout<<'*'; } cout<<endl; } }


测评信息: