信息学奥赛一本通T1440-数的划分,一种递归解法 摘要:解题思路:逐个列举最小项,最小项的最大值是n/k,n表示剩余数的大小,k表示还需要切割出来几个数。当k=0且n=0,表示切割完成,答案加一,当k<=0且n<=0,停止递归注意事项:参考代码:#incl…… 题解列表 2024年02月21日 0 点赞 0 评论 258 浏览 评分:0.0
~~【Java】版本~~ 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args…… 题解列表 2024年02月21日 0 点赞 0 评论 190 浏览 评分:0.0
字符串最大跨距C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[300],s1[10],s2[10],*w; in…… 题解列表 2024年02月21日 0 点赞 0 评论 198 浏览 评分:0.0
~~【Java】版本~~ 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args…… 题解列表 2024年02月21日 0 点赞 0 评论 209 浏览 评分:0.0
C语言题解 1021: [编程入门]迭代法求平方根 摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> double squareroot(double n…… 题解列表 2024年02月22日 0 点赞 0 评论 138 浏览 评分:0.0
C语言题解 1093: 字符逆序 摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> int main() { char str[…… 题解列表 2024年02月22日 0 点赞 0 评论 133 浏览 评分:0.0
查找特定的值C解 摘要:解题思路:注意事项:注意看题参考代码:#include<stdio.h>int main(){ int n,a[10000],i,m,count=0; scanf("%d",&n); …… 题解列表 2024年02月22日 0 点赞 0 评论 169 浏览 评分:0.0
编写题解 1266: 马拦过河卒 摘要:解题思路:动态规划注意事项:参考代码:a, b, c, d = map(int, input().split())stop_point = [(0, 0), (-1, -2), (1, -2), (-…… 题解列表 2024年02月22日 0 点赞 0 评论 170 浏览 评分:0.0
Sn的公式求和,递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int ret) { if (ret > 9) { return ret + fun(ret / 10); } els…… 题解列表 2024年02月22日 0 点赞 0 评论 167 浏览 评分:0.0
编写题解 1577: 蓝桥杯算法提高VIP-铺地毯 摘要:解题思路:注意事项:参考代码:n = int(input())rugs = []result = []for j in range(n): a, b, g, k = map(int, input…… 题解列表 2024年02月22日 0 点赞 0 评论 143 浏览 评分:0.0