蓝桥杯2022年第十三届省赛真题-重复的数 摘要:### 题目描述 给定一个数列 A = (a1, a2, · · · , an),给出若干询问,每次询问某个区间 [l, r] 内恰好出现 k次的数有多少个 ? ### 题目分析 经典离线莫…… 题解列表 2022年06月19日 0 点赞 0 评论 1565 浏览 评分:6.8
蓝桥杯算法提高VIP-递归倒置字符数组(C++) 摘要:下面是我(一个小白)的代码,思路简单,欢迎采纳 ```cpp #include #include//调用string的头文件 using namespace std; string zm; …… 题解列表 2022年06月19日 0 点赞 0 评论 1211 浏览 评分:8.7
C/C++ 47行解决 思路简单 耗时0ms 内存1216 摘要: ~~好久没写代码了,手有点痒就写一篇好了(bushi)~~ ------------ 解题思路: 先对每个数字进行处理,然后一次判断是否为相关数即可,具体见代码 -----------…… 题解列表 2022年06月19日 0 点赞 0 评论 631 浏览 评分: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 评论 513 浏览 评分:9.9
不是说两个空格吗,两个空格过不了,只需要一个 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10]; for (int i = 0;…… 题解列表 2022年06月19日 0 点赞 0 评论 524 浏览 评分: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 评论 412 浏览 评分:9.9
字符排序-题解(各语言代码) 摘要:**python** ```python for _ in range(int(input())):print(''.join(sorted(input()))) ``` **java** …… 题解列表 2022年06月18日 0 点赞 0 评论 533 浏览 评分:0.0
适合新手小白 摘要:解题思路:第一步,根据题意定义变量;第二步,输入变量,由题意给变量赋值;第三步,输出变量。注意事项:浮点数可用float和double定义函数,float用格式符%f,double使用格式符%lf。输…… 题解列表 2022年06月18日 0 点赞 0 评论 712 浏览 评分: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 评论 429 浏览 评分:0.0
1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:从2开始一直到m,用n保存起来,最后用一去减去n。注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; …… 题解列表 2022年06月18日 0 点赞 0 评论 397 浏览 评分:9.0