有格调
2025-12-11 19:17:09
发布于:上海
2阅读
0回复
0点赞
在学校瞎想的
/*
o
o
o o
*/
#include <bits/stdc++.h>
using namespace std;
string s="■";
int main(){
int l,w,a;
cin>>l>>w>>a;
for(int i=0;i<l;i++){
for(int j=0;j<a;j++){
cout<<" ";
}
for(int j=0;j<w;j++){
cout<<s;
}cout<<endl;
}
for(int i=0;i<a;i++){
for(int j=0;j<a;j++){
cout<<s;
}
for(int j=0;j<a;j++){
cout<<" ";
}
for(int j=0;j<a;j++){
cout<<s;
}cout<<endl;
}
cout<<endl;
return 0;
}
这里空空如也

有帮助,赞一个