| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84883 | sh25_zhangjiajia | 画矩形 | C++ | 通过 | 0 MS | 244 KB | 430 | 2026-03-01 21:36:09 |
#include <iostream> using namespace std; int main() { int h, w, fill; char c; cin >> h >> w >> c >> fill; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (fill == 1 || i == 0 || i == h-1 || j == 0 || j == w-1) { cout << c; } else { cout << " "; } } cout << endl; } return 0; }