| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1681 | 梅煦洋 | 打印星号三角形 | C++ | Accepted | 100 | 0 MS | 256 KB | 250 | 2019-10-18 19:46:03 |
#include<iostream> int main(){ int N,i=1,j=1; scanf("%d",&N); while(i<=N){ while(j<=(N-i)){ printf(" "); j++; } j=1; while(j<=(2*i-1)){ printf("*"); j++; } printf("\n"); i++; j=1; } return 0; }