Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128097 | 唐诗阳 | 打印直角三角形 | C++ | Accepted | 14 MS | 268 KB | 363 | 2025-08-01 19:58:25 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int s=1,n; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=s;j++){ cout<<'*'; } cout<<endl; s++; } return 0; }