跳到正文

题解

题解:P12276 [蓝桥杯 2024 国 Python A] 汉字田

Holy_Cabbage约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年6月3日
篇幅
约 1 分钟
题目
P12276

版本

  1. v1当前

这题其实就是看题目分成的长度为 11 线段数。

计算: 题目分成了 44 个边长为一的正方形,周长都为 44,4×44\times4 减去中间重合的十字架等于 4×4−4=124\times4-4=12。

Code:

C++
#include <bits/stdc++.h>
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0),cout.tie(0);
    cout<<"12";
    return 0;
}
Python
print(12)
原文