1046: [编程入门]自定义函数之数字后移 摘要:import java.io.*; /** * 善用 System.arraycopy() */ public class Main { public static Bu…… 题解列表 2021年12月10日 0 点赞 0 评论 306 浏览 评分:0.0
信息学奥赛一本通T1440-数的划分 摘要:解题思路:dfs简单使用。其中,需要对划分做一些简单处理,即升序划分。注意事项:本题解没有对dfs进行优化,时间复杂度较高,但是能过oj。参考代码:import java.io.BufferedRea…… 题解列表 2021年12月10日 0 点赞 1 评论 595 浏览 评分:9.9
1045: [编程入门]自定义函数之整数处理 摘要:import java.io.*; import java.util.Arrays; import java.util.OptionalInt; /** * 先使用 OptionalIn…… 题解列表 2021年12月10日 0 点赞 0 评论 423 浏览 评分:6.0
蓝桥杯算法提高VIP-身份证排序 (C++) 摘要:解题思路: 数组比<vector>快一些#include<iostream> #include<algorithm> #include<vector> #include<cstdio> ty…… 题解列表 2021年12月10日 0 点赞 0 评论 489 浏览 评分:0.0
蓝桥杯算法提高VIP-插入排序 摘要:解题思路: 这题有问题注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; long long sum[200]…… 题解列表 2021年12月10日 0 点赞 0 评论 477 浏览 评分:0.0
自定义函数处理素数-C语言 摘要:解题思路:首先注意1既不是素数也不是偶数,所以i从2开始计数;遍历在2~n之间是否存在i值能被n整除,如存在则n为非素数;注意事项:找到一个能被n整除的i后即刻用break跳出for循环,不然会打印n…… 题解列表 2021年12月10日 0 点赞 0 评论 509 浏览 评分:0.0
1439: 蓝桥杯历届试题-小朋友排队 python 时间超限 摘要: n = int(input()) a = list(map(int,input().strip().split())) a.insert(0,0) b…… 题解列表 2021年12月10日 0 点赞 0 评论 856 浏览 评分: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 评论 400 浏览 评分: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 评论 412 浏览 评分:0.0
Python字典映射 摘要:score = int(input())number = score//10switcher = { 10: 'A', 9: 'A', 8: '…… 题解列表 2021年12月10日 0 点赞 0 评论 347 浏览 评分:0.0