生日蛋糕问题用c++来实现 摘要:解题思路: 1:我们将蛋糕的每一层看作是一个圆柱体,并且用半径R和高度H来描述。2:通过给定的蛋糕体己N和层数M,我们需要找到一种制作方案,来使得蛋糕的外表面积最小。注意事项:1:在编写代码时,要注意…… 题解列表 2024年10月25日 0 点赞 3 评论 539 浏览 评分:9.0
不开long long 见祖宗#2656: 蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月07日 1 点赞 0 评论 772 浏览 评分:9.0
3岁都能看懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int k; scanf("%d", &k); if (k == 1 || k =…… 题解列表 2024年11月11日 0 点赞 0 评论 611 浏览 评分:9.0
回文字符串四种情况 摘要:解题思路:1.字符串s本身回文aaa2.全为"lqb"字符,补充另一半即可lqb ==> bql_lqb3.前部分回文ioilqb ==> bql_ioilqb4.部分回文bioi_blq ==>ql…… 题解列表 2024年11月17日 3 点赞 0 评论 670 浏览 评分:9.0
头铁撞墙-狡兔 k 窟 摘要:解题思路:惯性思维硬刚等同于头铁撞墙把连通的点集视为一个结点,结点相连,然后广搜路径注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#defi…… 题解列表 2024年11月18日 2 点赞 0 评论 815 浏览 评分:9.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,b=0,c=0,d=0,e=0; char a[201]; gets(a); …… 题解列表 2024年11月20日 1 点赞 0 评论 972 浏览 评分:9.0
暴力枚举 #3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月25日 4 点赞 0 评论 810 浏览 评分:9.0
1257: 超级楼梯(Java递归) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) {…… 题解列表 2024年11月26日 0 点赞 0 评论 317 浏览 评分:9.0
解释很清晰的复杂思路(Python) 摘要:解题思路:(1)输入ISBN号码字符串string(2)根据数字Ascll码的范围分批将9位数字和1位识别码按列表和字符串存储(3)对存储9位数字的列表元素整数化处理,按照规则对元素计算加权和(4)对…… 题解列表 2024年11月29日 0 点赞 0 评论 363 浏览 评分:9.0
编写题解 2000: 偶数列举 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<…… 题解列表 2024年12月01日 3 点赞 0 评论 666 浏览 评分:9.0