| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 352385 | 黄浙峰老师 | [在线测评解答教程] A+B 问题(有框架) | C++ | Wrong Answer | 0 | 3 MS | 256 KB | 1098 | 2025-09-26 20:49:09 |
#include <iostream> #include <string> using namespace std; // 定义每个数字的5x5表示 const string digits[4][5] = { // 数字0的表示 { ".....", ".***.", ".***.", ".***.", "....." }, // 数字1的表示 { "****.", "****.", "****.", "****.", "****." }, // 数字2的表示 { ".....", "****.", ".....", ".****", "....." }, // 数字3的表示 { ".....", "****.", ".....", "****.", "....." } }; int main() { string n; cin >> n; // 读取输入的数字字符串 // 逐行构建并输出结果 for (int row = 0; row < 5; ++row) { string line; for (char c : n) { int digit = c - '0'; // 将字符转换为对应的数字 line += digits[digit][row]; // 拼接当前行的对应部分 } cout << line << endl; // 输出一行结果 } return 0; }