| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1422 | 顾郁铭 | 倒三角形 | C++ | Accepted | 100 | 0 MS | 252 KB | 339 | 2019-10-08 20:47:40 |
#include<iostream> int main(){ int a,i; // i表示第几行。 scanf("%d",&a); i=a; while(i>=1){ // 打空格的个数a-i. int m=1; while(m<=a-i){ printf(" "); m++; } // 打#的个数2*i-1 int n=1; while(n<=2*i-1){ printf("#"); n++; } printf("\n"); i--; } return 0; }