13 條題解
-
-2
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; char c; bool d; cin>>a>>b>>c>>d; if(d1) { for(int i=1;i<=a;i++) { for(int j=1;j<=b;j++) { cout<<c; } cout<<endl; } } if(d0) { for(int i=1;i<=a;i++) { for(int j=1;j<=b;j++) { if(i1||ia||j1||jb) { cout<<c; } else { cout<<" "; } } cout<<endl; } } return 0; }
資訊
- ID
- 885
- 時間
- 1000ms
- 記憶體
- 256MiB
- 難度
- 1
- 標籤
- (無)
- 遞交數
- 225
- 已透過
- 87
- 上傳者