Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5378 D班-陈颖钧 菱形 C++ 编译错误 0 0 MS 0 KB 488 2025-02-06 14:25:10

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ int i,n,j,k,c=5,b=1; cin>>n; for(i=1;i<=n;i++){ for(j=1;j<=n-i;j++){ cout<<' '; } for(k=1;k<=i*2-1;k++){ cout<<"*"; } cout<<endl; } for(i=1;i<=n;i++){ for(j=1;j<=;j++){ cout<<' '; } for(k=1;k<=c;k++){ cout<<"*"; } cout<<endl; b++; c-=2; } }


测评信息: