遍历直接秒 摘要:解题思路:你可能被题目吓到,题目要求 '?' 可以被随时替代,那也就是说明:'00、11、0?、1?、?1、?0、??'都是正确的,那我们只需要进行步长为2的遍历,对满…… 题解列表 2024年03月06日 0 点赞 4 评论 1130 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-更小的数(C++解法) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int length(string s) { …… 题解列表 2024年03月06日 0 点赞 1 评论 542 浏览 评分:7.3
冒泡排序思想,直接比较大小 摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h> #include<string.h> int main(){ char a…… 题解列表 2024年03月06日 0 点赞 0 评论 421 浏览 评分:0.0
编写题解 1119: C语言训练-"水仙花数"问题1(循环解决) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,c=0; scanf("%d", &n); int t = n; while (n != 0) …… 题解列表 2024年03月06日 1 点赞 0 评论 978 浏览 评分:10.0
动态规划思路详解-贪吃的大嘴 摘要:解题思路:注意事项:参考代码:def find_cakes(cakes, m): # 初始化动态规划数组,dp[i][j]表示前i个小蛋糕中选择若干个,美味度之和为j所需的最小数量 …… 题解列表 2024年03月06日 0 点赞 0 评论 451 浏览 评分:0.0
温度转换题目 摘要:解题思路:注意事项:注意数据类型,f,c是双精度温度,输出为长浮点数型。参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",…… 题解列表 2024年03月06日 0 点赞 0 评论 720 浏览 评分:0.0
编写题解 2791: 计算邮资python 摘要:参考代码:r, s = input().split() r = int(r) money = 8 if r > 1000: money += (r-1000)//500*4 …… 题解列表 2024年03月06日 0 点赞 0 评论 704 浏览 评分:10.0
dfs标记路径 参考代码:importjava.util.Scanner;publicclassMain{staticint[][]g=newint[51][51];//地图staticint[][]st=newint[51][51];//地图staticint[]c=newint[1010];staticint[] 题解列表 2024年03月06日 0 点赞 0 评论 558 浏览 评分:9.9
编写题解 2790: 分段函数python 摘要:参考代码:N = float(input()) if N >= 0 and N < 5: print("%.3f" %(-N+2.5)) elif N >= 5 and N < 10: …… 题解列表 2024年03月06日 0 点赞 0 评论 929 浏览 评分:9.9