Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
28013 唐心 打印神秘图形 C++ Accepted 3 MS 736 KB 312 2022-06-12 19:03:52

Tests(5/5):


Code:

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