1547: 蓝桥杯算法提高VIP-理财计划 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k,n; float p; float result=0; scanf("%d%d%f",&k,&n,…… 题解列表 2021年03月03日 0 点赞 0 评论 261 浏览 评分:0.0
1543: 蓝桥杯算法提高VIP-淘淘的名单 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define LEN 10000// 淘淘拿到了一份名单,他想对上面的名字进行处理,挑出一些特…… 题解列表 2021年03月03日 0 点赞 0 评论 285 浏览 评分:0.0
1516: 蓝桥杯算法提高VIP-字符串比较 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEN 100int mystrcmp(char *str1,char *str2) { for(int i=0; s…… 题解列表 2021年03月03日 0 点赞 0 评论 234 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:注意事项:A1 = “A”A2 = “ABA”A3 = “ABACABA”A4 = “ABACABADABACABA”可以等式为A1 = “A”A2 = “A1BA1…… 题解列表 2021年03月03日 0 点赞 0 评论 492 浏览 评分:9.9
Kruskal & Prim C++实现 摘要:解题思路:最小生成树问题,可以用Kruskal或Prim算法解决。Kruskal: 算法思路:将图的边按升序排序,每次选择当前最小边,若加入该边不会构成回路,则加入。 参考代码:/* …… 题解列表 2021年03月02日 0 点赞 0 评论 464 浏览 评分:9.9
蓝桥杯算法训练VIP-友好数--(java代码) 摘要:import java.util.Scanner; public class Main { /** * @param args * T1615 */ publi…… 题解列表 2021年03月02日 0 点赞 0 评论 472 浏览 评分:0.0
几行代码解决||python 摘要:解题思路:输入的皆为字符串,那么字符串的每个字符是可以得到,将其转为int类型再相加即可。注意事项:参考代码:while True: m = input() l = 0 for i …… 题解列表 2021年03月02日 0 点赞 0 评论 745 浏览 评分:6.0
写出前几项找出规律 摘要:解题思路:1.函数sinStr(n)求出An通过for循环生成s注意事项:参考代码:n=int(input()) def sinStr(num): tempStr='' …… 题解列表 2021年03月02日 0 点赞 0 评论 229 浏览 评分:0.0
题解 2022: 合并区间(Java) 摘要: import java.util.Scanner; public class Main{ public static void main(String[…… 题解列表 2021年03月02日 0 点赞 0 评论 327 浏览 评分:0.0
数组解决水仙花问题2 摘要:1.先取到所有三位数;2.对每一个三位数取出个十百位数字;3.利用水仙花数定义进行判断;对于2,3见我上一篇文章int x=100; while(x>99&&x<1000){ int …… 题解列表 2021年03月02日 0 点赞 0 评论 453 浏览 评分:9.9