acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • 题解

    #include <iostream> #include <vector> #include <cmath> using namespace std; vector<vector<char>> draw(int n) { int size = pow(3, n - 1); vector<vector<char>> grid(size, vector<char>(size, ' ')); } int main() { int T; cin >> T; while (T--) { int n; cin >> n; vector<vector<char>> result = draw(n); int size = result.size(); for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { cout << result[i][j]; } cout << endl; } cout << "-" << endl; } return 0; }

    userId_undefined

    爸爸

    时空双修者递归·套娃学徒模拟·模拟练习生枚举·枚举小能手I/O·IO入门者倔强青铜
    1阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页