5 条题解
-
-1
#include #include #include using namespace std; int main() { int r,c; char s; bool b; cin >> r >> c >> s >> b; for(int i=1;i<=r;i++) { for(int j=1;j<=c;j++) {
if(i == 1 || i == r || j == 1 || j == c) { cout << s; }else{ if(b == 1)cout << s; else cout << " "; } } cout << endl; } return 0;
}
信息
- ID
- 912
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 238
- 已通过
- 103
- 上传者