Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
1436 张志鹏 打印星号三角形 C++ Accepted 100 0 MS 252 KB 261 2019-10-09 20:05:43

Tests(4/4):


#include<iostream> int main(){ int a,b=1,c=0,d=0,e; scanf("%d",&a); e=a; while(b<=a){ c=0; d=0; while(c<e-1){ printf(" "); c++; } while(d<2*b-1){ printf("*"); d++; } printf("\n"); b++; e--; } return 0; }


Judgement Protocol: