自己想的思路,还请批评指教 摘要:解题思路:先创建一个数组,容量为9;将9个数字输入数组;输入需要插入的数;遍历这个数组,分两种情况(防止出现数组越界异常):(1)i == array.length - 1;(2)i < array.…… 题解列表 2023年05月08日 0 点赞 1 评论 433 浏览 评分:9.9
编写题解 1503: 蓝桥杯算法提高VIP-前10名 摘要:```c++ #include using namespace std; void Sort(int*nums,int n) { for(int i = 0;inums[i]; …… 题解列表 2023年05月08日 0 点赞 0 评论 411 浏览 评分:0.0
2869: 字符串最大跨距 摘要:解题思路:注意事项:(≖͞_≖̥)参考代码:#include<iostream>#include<algorithm>#include<string.h>#include<string>using n…… 题解列表 2023年05月08日 0 点赞 0 评论 419 浏览 评分:9.9
递归算法-蓝桥杯算法训练VIP-数位分离 摘要:# 核心思想 > 递归 ```c++ #include using namespace std; void Print(int n) { if(n>9) { …… 题解列表 2023年05月08日 0 点赞 0 评论 468 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:题目主要要搞清楚什么是闰年,什么是平年,然后闰年每个月有多少天,平年每个月有多少天。注意事项:参考代码:#include <bits/stdc++.h> using namespace s…… 题解列表 2023年05月09日 0 点赞 0 评论 408 浏览 评分:0.0
双循环遍历 摘要:# 纯纯打表 ```c++ #include #include using namespace std; char str[10000]; int f[26]; int main() …… 题解列表 2023年05月09日 0 点赞 0 评论 446 浏览 评分:9.9
我的牛逼,实力证明一切 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,j,sum=1,a=0,va,b=2; for(i=1…… 题解列表 2023年05月09日 0 点赞 0 评论 253 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:一、解题思路:for()循环设第一项的分子为a,分母为b,则第一项为a/b,第二项为(a+b)/a,第三项为((a+b)+a)/(a+b),第四项为(((a+b)+a))+(a+b))/((a+b)+…… 题解列表 2023年05月09日 0 点赞 0 评论 339 浏览 评分:0.0
谁考了第k名 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) …… 题解列表 2023年05月09日 0 点赞 0 评论 375 浏览 评分:9.9
其实就是前两个题的变式啦 摘要:解题思路:1. 逆序数,就是不是顺序的数, 所以我们只需要设置一个双循环,判断前一个数字与后一个数字不一样就行 注意事项:1. 设置数组好放入数…… 题解列表 2023年05月09日 0 点赞 0 评论 366 浏览 评分:0.0