蓝桥杯2023年第十四届省赛真题-更小的数(C++解法) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int length(string s) { …… 题解列表 2024年03月06日 0 点赞 1 评论 391 浏览 评分:7.3
冒泡排序思想,直接比较大小 摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h> #include<string.h> int main(){ char a…… 题解列表 2024年03月06日 0 点赞 0 评论 233 浏览 评分: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 评论 678 浏览 评分:10.0
动态规划思路详解-贪吃的大嘴 摘要:解题思路:注意事项:参考代码:def find_cakes(cakes, m): # 初始化动态规划数组,dp[i][j]表示前i个小蛋糕中选择若干个,美味度之和为j所需的最小数量 …… 题解列表 2024年03月06日 0 点赞 0 评论 241 浏览 评分:0.0
温度转换题目 摘要:解题思路:注意事项:注意数据类型,f,c是双精度温度,输出为长浮点数型。参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",…… 题解列表 2024年03月06日 0 点赞 0 评论 436 浏览 评分: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 评论 482 浏览 评分:10.0
dfs标记路径 摘要:参考代码:import java.util.Scanner;public class Main {static int[][] g=new int[51][51];//地图static int[][]…… 题解列表 2024年03月06日 0 点赞 0 评论 298 浏览 评分: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 评论 621 浏览 评分:9.9
编写题解 2789: 骑车与走路python 摘要:参考代码:n = int(input()) if n/3+50 == n/1.2: print("All") if n/3+50 > n/1.2: print("Walk") …… 题解列表 2024年03月06日 0 点赞 0 评论 515 浏览 评分:0.0