1045: [编程入门]自定义函数之整数处理 摘要:import java.io.*; import java.util.Arrays; import java.util.OptionalInt; /** * 先使用 OptionalIn…… 题解列表 2021年12月10日 0 点赞 0 评论 429 浏览 评分:6.0
蓝桥杯算法提高VIP-身份证排序 (C++) 摘要:解题思路: 数组比<vector>快一些#include<iostream> #include<algorithm> #include<vector> #include<cstdio> ty…… 题解列表 2021年12月10日 0 点赞 0 评论 496 浏览 评分:0.0
蓝桥杯算法提高VIP-插入排序 摘要:解题思路: 这题有问题注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; long long sum[200]…… 题解列表 2021年12月10日 0 点赞 0 评论 484 浏览 评分:0.0
自定义函数处理素数-C语言 摘要:解题思路:首先注意1既不是素数也不是偶数,所以i从2开始计数;遍历在2~n之间是否存在i值能被n整除,如存在则n为非素数;注意事项:找到一个能被n整除的i后即刻用break跳出for循环,不然会打印n…… 题解列表 2021年12月10日 0 点赞 0 评论 513 浏览 评分:0.0
1439: 蓝桥杯历届试题-小朋友排队 python 时间超限 摘要: n = int(input()) a = list(map(int,input().strip().split())) a.insert(0,0) b…… 题解列表 2021年12月10日 0 点赞 0 评论 863 浏览 评分:0.0
自定义函数求一元二次方程-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int gen(float a,float b,float c){ float D,x1,x2,x…… 题解列表 2021年12月10日 0 点赞 0 评论 406 浏览 评分:0.0
编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:import matha,b,c=map(float,input().split())x = -math.sqrt(-c+(b/2*a)**2)-b/2*ay = mat…… 题解列表 2021年12月10日 0 点赞 0 评论 419 浏览 评分:0.0
Python字典映射 摘要:score = int(input())number = score//10switcher = { 10: 'A', 9: 'A', 8: '…… 题解列表 2021年12月10日 0 点赞 0 评论 354 浏览 评分:0.0
编写题解 1118: Tom数 摘要:解题思路:注意事项:参考代码:while True: try: n = str(input()) sum = 0 for i in n: …… 题解列表 2021年12月10日 0 点赞 0 评论 649 浏览 评分:0.0
关于蓝桥杯2014年第五届真题-分糖果问题c++结构清晰的解法 摘要:解题思路:关于糖果分配问题我将其分解为三个问题 1:检查每个人的糖果是否相等;2:将每个人的糖果补成偶数;3:分糖果;注意事项:因为最开始分配的糖果是偶数所以关于三个问题的顺序应该是先检查,后小朋友之…… 题解列表 2021年12月10日 0 点赞 0 评论 544 浏览 评分:0.0