Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151142 丁昭臣 打印直角三角形 C++ Wrong Answer 1 MS 268 KB 195 2026-04-08 18:53:20

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int m,n=1; cin>>m; for(int i=1;i<=m;i++) { for(int j=1;j<=n;j++){ cout<<'*'<<' '; } cout<<endl; n++; } return 0; }


Run Info:

------Input------
7
------Answer-----
* ** *** **** ***** ****** *******
------Your output-----
* * * * * * * * * * * * * * * * * * * * * * * * * * * *