三反转解决整形数组右移问题,仅单一数组解决 摘要:解题思路:移动次数作为解题关键,相当于以移动次数-1的下标为界限划为两部分人进行两次反转排序注意事项:当移动次数大于数组大小n时着前n遍移动无效,所以要求得真正的移动次数参考代码:#include&l…… 题解列表 2026年03月10日 0 点赞 0 评论 5 浏览 评分:0.0
指针数组模拟2维数组(编译器允许可以使用变长数组) 摘要:解题思路:指针数组模拟2维数组(编译器允许可以使用变长数组)注意事项:内存分配(注意释放先行数组即int*再释放指针数组)和对角线上数字求和(奇偶有别,求和逻辑)参考代码:#include <s…… 题解列表 2026年03月10日 0 点赞 0 评论 5 浏览 评分:0.0
编写题解 3325: 蓝桥杯2025年第十六届省赛真题-2025 图形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int h,w; scanf("%d %d",&h,&w);&…… 题解列表 2026年03月09日 0 点赞 0 评论 26 浏览 评分:0.0
先求每一位的数,存放到数组中 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b[5],n,m; scanf("%d",&a); b[4]…… 题解列表 2026年03月09日 0 点赞 0 评论 17 浏览 评分:0.0
链表合并 ***C语言解题*** 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct Node{ int …… 题解列表 2026年03月09日 0 点赞 0 评论 16 浏览 评分:0.0
用2行代码解决 摘要:解题思路:注意事项:参考代码:num = list( map(int,input( ).split( ) ))print(' '.join( map(str,sorted( num))…… 题解列表 2026年03月09日 0 点赞 0 评论 38 浏览 评分:10.0
最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) …… 题解列表 2026年03月08日 0 点赞 0 评论 28 浏览 评分:0.0
编写题解 2770: 计算浮点数相除的余数 摘要:解题思路:注意事项:参考代码:a,b = map(float,input().split())c = a%bprint(f"{c:g}")…… 题解列表 2026年03月06日 0 点赞 0 评论 35 浏览 评分:0.0
#与圆相关的计算,python 摘要:解题思路:注意事项:参考代码:r = float(input())pi = 3.14159print(f"{2*r:.4f} {2*pi*r:.4f} {pi*r*r:.4f}")…… 题解列表 2026年03月06日 1 点赞 0 评论 28 浏览 评分:10.0
忽略大小写的字符串比较 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <ctype.h>int main(){&…… 题解列表 2026年03月06日 0 点赞 0 评论 30 浏览 评分:0.0