| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 80785 | sh25_zhangyy | 画矩形 | C++ | Accepted | 0 MS | 252 KB | 430 | 2026-01-04 15:31:24 |
#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; }