| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152594 | 王奕杰 | 打印反直角三角形 | C++ | Accepted | 13 MS | 268 KB | 503 | 2026-04-27 19:32:46 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x=1; cin>>n; for(int a=1;a<=n;a++){ for(int i=n-1;i>=x;i--){ cout<<' '; } for(int i=1;i<=x;i++){ cout<<'*'; } cout<<endl; x++; } return 0; }