自定义函数之整数处理 摘要:解题思路:首先声明了四个函数,依次分别为:赋值函数,最小数最与第一位交换的函数,最大数与最后一位交换的函数,以及打印结果的函数。赋值函数:首先在主函数中定义一个十位 的数组,再进入赋值函数中,在函数中…… 题解列表 2022年06月19日 0 点赞 0 评论 425 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-重复的数 摘要:### 题目描述 给定一个数列 A = (a1, a2, · · · , an),给出若干询问,每次询问某个区间 [l, r] 内恰好出现 k次的数有多少个 ? ### 题目分析 经典离线莫…… 题解列表 2022年06月19日 0 点赞 0 评论 1465 浏览 评分:6.8
蓝桥杯算法提高VIP-递归倒置字符数组(C++) 摘要:下面是我(一个小白)的代码,思路简单,欢迎采纳 ```cpp #include #include//调用string的头文件 using namespace std; string zm; …… 题解列表 2022年06月19日 0 点赞 0 评论 1140 浏览 评分:8.7
C/C++ 47行解决 思路简单 耗时0ms 内存1216 摘要: ~~好久没写代码了,手有点痒就写一篇好了(bushi)~~ ------------ 解题思路: 先对每个数字进行处理,然后一次判断是否为相关数即可,具体见代码 -----------…… 题解列表 2022年06月19日 0 点赞 0 评论 564 浏览 评分:9.9
C++语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:利用等比数列的性质;注意事项:审好题目参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n; c…… 题解列表 2022年06月19日 0 点赞 0 评论 438 浏览 评分:9.9
不是说两个空格吗,两个空格过不了,只需要一个 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10]; for (int i = 0;…… 题解列表 2022年06月19日 0 点赞 0 评论 472 浏览 评分:9.9
A+B for Input-Output Practice (VI) 摘要:解题思路:利用数组注意事项:审好题是关键;参考代码:#include<bits/stdc++.h>using namespace std; int main(){ int n; while(cin…… 题解列表 2022年06月18日 0 点赞 0 评论 362 浏览 评分:9.9
字符排序-题解(各语言代码) 摘要:**python** ```python for _ in range(int(input())):print(''.join(sorted(input()))) ``` **java** …… 题解列表 2022年06月18日 0 点赞 0 评论 471 浏览 评分:0.0
适合新手小白 摘要:解题思路:第一步,根据题意定义变量;第二步,输入变量,由题意给变量赋值;第三步,输出变量。注意事项:浮点数可用float和double定义函数,float用格式符%f,double使用格式符%lf。输…… 题解列表 2022年06月18日 0 点赞 0 评论 641 浏览 评分:7.3
关于求解最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,de,ge; cin>>a>>b; de=a; ge=b; while(d…… 题解列表 2022年06月18日 0 点赞 0 评论 369 浏览 评分:0.0