排序(n个数从小到大) 摘要: [========] #include void sort(int a[],int n) //定义一个排序函数sort { …… 题解列表 2024年08月23日 1 点赞 0 评论 732 浏览 评分:4.0
应该是最简洁了的-最强小队 摘要:解题思路:题意理解错了,以为是从一段区间中选取几个结果是一整段的,几行搞定注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2024年11月18日 1 点赞 0 评论 793 浏览 评分:4.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum=0,sum2=0,a[3][3]; for(i=0;i<3;i++) …… 题解列表 2024年11月19日 1 点赞 0 评论 386 浏览 评分:4.0
最复杂的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f1(int a){ long y; y=(long)a*a; return y;}long f2(int …… 题解列表 2024年11月22日 0 点赞 0 评论 236 浏览 评分:4.0
破解简单密码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ …… 题解列表 2025年04月08日 0 点赞 0 评论 179 浏览 评分:4.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:第一种方式就是:1、先算出输入数字有几位 2、然后根据几位去拿到每个个位,并放在数组中,最后输出;第二种方式:需要将int类型转为字符串,继而转为字符数组进行操作;注…… 题解列表 2025年04月17日 1 点赞 0 评论 469 浏览 评分:4.0
蓝桥杯2025年第十六届省赛真题-数组翻转 摘要:### 解题思路:1. **输入和初始化**: - 首先,读取整数 `N` 和数组 `nums`。 - 使用 `HashMap` 来保存每个唯一数字及其每个连续段的和。…… 题解列表 2025年04月19日 0 点赞 0 评论 474 浏览 评分:4.0
10个变量,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,s,d,f,g,h,…… 题解列表 2025年07月30日 1 点赞 0 评论 278 浏览 评分:4.0
优先队列实现看病,取消同步流避免超时 摘要:解题思路:优先队列,实现看病案例注意事项:取消同步流,避免超时参考代码://看病 取消同步流,加快速度#include <bits/stdc++.h>using namespace std…… 题解列表 2025年10月04日 0 点赞 0 评论 163 浏览 评分:4.0