| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 74473 | sh25_wangtaojie | 画矩形 | C++ | Accepted | 0 MS | 248 KB | 434 | 2025-11-28 14:50:39 |
#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; }