使用ArrayLsit链表,普通for循环 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args…… 题解列表 2024年04月07日 0 点赞 0 评论 164 浏览 评分:0.0
编写题解 1546: 蓝桥杯算法提高VIP-班级排名 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n, m, d, q = 0, ar[100] = { 0 }; char arr[…… 题解列表 2024年04月08日 0 点赞 0 评论 209 浏览 评分:0.0
编写题解 1782: 找出最长的字符串来 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char strings[5][101]; /…… 题解列表 2024年04月08日 0 点赞 0 评论 231 浏览 评分:0.0
最少刷题数 c++ 摘要: #### 思路 1. 数组排序,求中位数的**下标**mid,mid必须满足mid左边数的个数要大于等于mid右边数的个数 2. 对于每一个ai,设修改后的ai为nx,依照题意,需要求最小的n…… 题解列表 2024年04月08日 0 点赞 0 评论 307 浏览 评分:0.0
2571: 蓝桥杯2020年第十一届省赛真题-回文日期 摘要:**部分正确的话,可能要注意到的一些暗含条件:** 1.‘ABABBABA’型回文串中A与B不能相等 2.输出日期必须大于输入日期 ```cpp #include #include u…… 题解列表 2024年04月08日 0 点赞 0 评论 488 浏览 评分:0.0
2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路: 从n到2,倒序判断k是为质数,若为质数,再判断 n%k == 0 同时判断 n//k是否也为质数,若都满足,则n为两个质数的积注意事项:题目的测试用例有问题,测试用例验证的:只是一个质数与…… 题解列表 2024年04月08日 0 点赞 0 评论 280 浏览 评分:0.0
1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:a = list(map(int, input().split())) for i in range(len(a)): temp = i for j…… 题解列表 2024年04月08日 1 点赞 0 评论 654 浏览 评分:0.0
1169: 绝对值排序 摘要:解题思路:注意事项:参考代码:while True: try: n = list(map(int, input().split())) a = n[1:]…… 题解列表 2024年04月08日 0 点赞 0 评论 190 浏览 评分:0.0
JAVA 重写Arrays.sort (超简单) 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Comparator;import java.util.Scanner;public c…… 题解列表 2024年04月08日 0 点赞 0 评论 263 浏览 评分:0.0
1219: 数列排序 摘要:解题思路:注意事项:参考代码:N = int(input()) for _ in range(N): arr = list(map(int, input().split())) …… 题解列表 2024年04月08日 0 点赞 1 评论 248 浏览 评分:0.0