0分救命

B2083 画矩形

题目里a是高,b是宽
by QcxRabbit @ 2023-12-17 09:52:16


自己敲一遍 ```cpp #include<bits/stdc++.h> using namespace std; int main() { int q,w,r; char e; cin>>q>>w>>e>>r; if(r==0){ for(int i=0;i<w;i++) cout<<e; for(int i=0;i<q-2;i++){ cout<<endl<<e; for(int j=0;j<w-2;j++) cout<<' '; cout<<e; } cout<<endl; for(int i=0;i<w;i++) cout<<e; } else{ for(int i=0;i<q;i++){ for(int j=0;j<w;j++) cout<<e; cout<<endl; } } } ```
by JeremyXie @ 2023-12-17 10:08:32


|