蓝桥杯2025年第十六届省赛真题-最多次数 摘要:解题思路:1. **理解问题**:我们需要在字符串 `s` 中找出尽可能多的子字符串,每个子字符串必须是长度为 3 的序列,且只能包含字符 'l', 'q', 'b',并且组成的单词需要是小蓝喜欢…… 题解列表 2025年04月19日 7 点赞 0 评论 1042 浏览 评分:7.0
优质题解 [北邮大作业]俄罗斯方块OJ版题解思路 摘要:题目很难,题目也很简单。这边是用cpp写的,参考基于Pierre Dellacherie算法(一下简称PD)这边图形就根据数组定义建系棋盘长这样:1. …… 题解列表 2025年05月20日 13 点赞 0 评论 4658 浏览 评分:7.0
1为真,0为假 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b, c, d; cin >> …… 题解列表 2025年09月08日 1 点赞 0 评论 371 浏览 评分:7.0
哥德巴赫曾猜测思路简单解 摘要:解题思路:注意事项:参考代码:#include<iostream>#define MAX 32767using namespace std;bool isPrime(int num){&n…… 题解列表 2025年09月29日 0 点赞 0 评论 432 浏览 评分:7.0
计算数字位数and逆序和顺序输出 摘要:#include<stdio.h>#include<math.h>int main(){ int n, m, y, i, j, k = 1; …… 题解列表 2025年10月09日 3 点赞 0 评论 1298 浏览 评分:7.0
c++使用bool变量的简便方法 摘要:#include <iostream>using namespace std;int main() { int a; cin >> a; bool con3 = (a % 3 …… 题解列表 2025年10月27日 2 点赞 0 评论 240 浏览 评分:7.0
危险系数 (C++代码) 摘要:#include<iostream> #include<cstring> #include<cstdio> #include<algorithm> using namespace std; …… 题解列表 2017年12月03日 13 点赞 0 评论 2173 浏览 评分:6.9
【能量项链】 (C++代码) 摘要:解题思路:注意事项:参考代码://区间动规 //重点就是将整体划分为区间,小区间之间合并获得大区间//状态转移方程的推导如下//一、将珠子划分为两个珠子一个区间时,这个区间的能量=左边珠子*右边珠子*…… 题解列表 2017年12月31日 0 点赞 0 评论 2143 浏览 评分:6.9
优质题解 IP判断 (C语言代码)思路清晰,详细注释,欢迎参考! 摘要:思路很清晰,见下面代码注释!遇到的是atoi函数的返回值问题,atoi()函数用来将字符串转换成整数(int),其原型为:int atoi (const char * str);函数说明:atoi()…… 题解列表 2018年04月05日 5 点赞 7 评论 4963 浏览 评分:6.9