Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
80785 sh25_zhangyy 画矩形 C++ 通过 0 MS 252 KB 430 2026-01-04 15:31:24

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


测评信息: