acgo题库
  • 首页
  • 题库
  • 学习
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情提交记录(0)
  • NOI/NOI+/CTSC题解

    以下是本蒟蒻写的代码和注释一定不能抄 自行理解 写完必须点赞

    userId_undefined

    黑鼠yyds

    66阅读
    3回复
    14点赞
  • 1ms很慢吗?

    #include <iostream> #include <vector> using namespace std; const int MOD = 1e9 + 7; int n, m; vector<string> grid; bool isValidLPart(int x1, int y1, int x2, int y2) { return true; } void placeL(int x, int y, int& count) { if (x < 0 || x >= n || y < 0 || y >= m || grid[x][y] == '#') return; grid[x][y] = '#'; for (int dx = -1; dx <= 1; ++dx) { for (int dy = -1; dy <= 1; ++dy) { if (dx == 0 && dy == 0) continue; if (isValidLPart(x, y, x + dx, y + dy)) { placeL(x + dx, y + dy, count); } } } grid[x][y] = '.'; } int main() { cin >> n >> m; grid.resize(n); for (int i = 0; i < n; ++i) { cin >> grid[i]; } }

    userId_undefined

    我的世界老玩家(专攻难题,互关)

    倔强青铜空间掌握者时间刺客模拟·模拟练习生分支·分支解题者数组·数组操作员
    1阅读
    0回复
    1点赞
  • 888

    加油哦!

    userId_undefined

    C+++++++++++++

    11阅读
    0回复
    1点赞
  • py来看

    def count_logos(n, m, grid): # 存储所有可能的L形位置 all_l_shapes = [] 读取输入 n, m = map(int, input().split()) grid = [input().strip() for _ in range(n)] 计算并输出结果 result = count_logos(n, m, grid) print(result)

    userId_undefined

    Cristiano Ronald

    倔强青铜循环·循环打卡人
    2阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    耐高总冠军 张文杰

    2阅读
    0回复
    0点赞
  • qwertyuio

    userId_undefined

    朱彦舟 四(9)班

    2阅读
    0回复
    0点赞
  • adfghk

    userId_undefined

    朱彦舟 四(9)班

    2阅读
    0回复
    0点赞
暂无数据

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

首页