Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77641 sh25_wanghy 画矩形 C++ 通过 1 MS 240 KB 432 2025-12-26 14:34:52

Tests(2/2):


#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; }


测评信息: