编写题解 2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int k,i=1;double s=0;cin>>k;whi…… 题解列表 2024年05月27日 1 点赞 0 评论 295 浏览 评分:8.0
线段树变式+维护区间前8大的值 摘要:解题思路:线段树是很常见的数据结构,不会的同学可以自行百度学习。首先题意有两种操作,一个是修改值,一个是查询区间[a,b]的第8大的值。我们使用线段树结构,每个节点存储这个区间的前八位的值,这里不用建…… 题解列表 2024年05月27日 0 点赞 0 评论 275 浏览 评分:9.9
编写题解 2823: 计算分数加减表达式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n;double s=0;cin>>n;for(int…… 题解列表 2024年05月27日 0 点赞 0 评论 252 浏览 评分:0.0
编写题解 2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool bsq(int n) { for(int i=1;i<=n;i++) { …… 题解列表 2024年05月26日 0 点赞 0 评论 212 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool ss(int n) { for(int i=2;i<n;i++) { …… 题解列表 2024年05月26日 0 点赞 0 评论 254 浏览 评分:0.0
编写题解 2820: 含k个3的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int jgs(int n) { int j=0;while(n){if(n%10=…… 题解列表 2024年05月26日 0 点赞 0 评论 274 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){long long a; cin>>a;while(a){co…… 题解列表 2024年05月26日 0 点赞 0 评论 334 浏览 评分:0.0
题解 2042: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N =1e3;ll a…… 题解列表 2024年05月26日 0 点赞 0 评论 358 浏览 评分:0.0
2881 图像相似度 摘要:解题思路:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;long long a[N]…… 题解列表 2024年05月26日 0 点赞 0 评论 208 浏览 评分:0.0
题解 2881: 图像相似度 摘要:```cpp #include using namespace std; typedef long long ll; const int N =1e3; ll a[N][N],b[N][N…… 题解列表 2024年05月26日 0 点赞 0 评论 290 浏览 评分:9.9