题目 3142: 蓝桥杯2023年第十四届省赛真题-平方差 摘要:解题思路:只有当 x 是偶数时(即 x 的最低位是0,或者说 x 是4的倍数),x 才能表示为两个整数的这是因为奇数减去奇数或偶数减去偶数总是得到偶数,而且只有当 x 模4的余数是0或3时,x 才能被…… 题解列表 2024年04月04日 0 点赞 0 评论 624 浏览 评分:9.9
三行简便 编写题解 2797: 最高的分数 摘要:解题思路:map;list;max注意事项:仔细检查中英文符号参考代码:n=int(input())a=list(map(int,input().split()))print(max(a))…… 题解列表 2024年04月04日 0 点赞 0 评论 505 浏览 评分:0.0
五行简便 编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:ord注意事项:记得加冒号参考代码:n=input()if ord(n)%2==0: print('NO')else: print('YES')…… 题解列表 2024年04月04日 1 点赞 0 评论 569 浏览 评分:9.9
四行简便 编写题解 2846: 统计数字字符个数 摘要:解题思路:运用正则表达式注意事项:r=r'\d'参考代码:import ren=input()r=r'\d'print(len(re.findall(r,n)))…… 题解列表 2024年04月04日 0 点赞 0 评论 668 浏览 评分:9.9
3151: 蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include<iostream>using namespace std;const int N = 15;//创建飞机结构体struct plane { int Ti, Di, Li;}p[N];…… 题解列表 2024年04月04日 0 点赞 0 评论 487 浏览 评分:0.0
题解 1668: printf基础练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int num; // 读取输入整数 scanf("%d", &n…… 题解列表 2024年04月04日 2 点赞 0 评论 660 浏览 评分:0.0
2576: 蓝桥杯2020年第十一届省赛真题-解码 摘要: #include #include #include using namespace std; char str1[100]; char st…… 题解列表 2024年04月04日 0 点赞 0 评论 263 浏览 评分:0.0
信息学奥赛一本通T1250-The Castle 摘要:解题思路: BFS注意事项: 数组实现普通队列,注意队列长度 参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10…… 题解列表 2024年04月04日 0 点赞 0 评论 241 浏览 评分:9.9
黄兢楷-拆分位数【C++题解】 摘要:题目要求:输入一个三位数,将它拆分开来,最后逆序输出。源代码要求:四个变量,第一个变量作为被运算的变量(number)。剩下三个变量作为运算变量(gewei,shiwei,baiwei)。源代码讲解:…… 题解列表 2024年04月03日 0 点赞 0 评论 619 浏览 评分:7.3
字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *tongji(char *a){ int i; static int b[4]={0}; for(i=0;*(a+i)!=&#…… 题解列表 2024年04月03日 0 点赞 0 评论 264 浏览 评分:0.0