求和很简单,只要掌握方法就可以 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,s=0;//s要赋初值!!! cin>>n>…… 题解列表 2023年02月22日 0 点赞 0 评论 463 浏览 评分:9.9
两种方法,简单易懂!!!! 摘要:解题思路:注意事项:数组可以不开那么大。参考代码:#include<bits/stdc++.h>using namespace std;//int a,b,c;int n,a[101][101],s,…… 题解列表 2023年02月22日 0 点赞 0 评论 423 浏览 评分:9.9
高斯求和 (c++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n; int s=(1+n)*n/2;…… 题解列表 2023年02月22日 0 点赞 0 评论 369 浏览 评分:9.9
c++----map的统计功能 摘要: #include using namespace std; int main() { int n; cin>>n; int a…… 题解列表 2023年02月22日 0 点赞 0 评论 450 浏览 评分:0.0
楼上题解太逊了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,a,b,tail,head,k[300],q[300][3],p[300…… 题解列表 2023年02月21日 0 点赞 2 评论 305 浏览 评分:6.0
分解因数(暴搜) 摘要:解题思路:暴力搜索,满足条件则方案+1 参考代码: ```cpp #include using namespace std; #define ll long long const int …… 题解列表 2023年02月21日 0 点赞 3 评论 595 浏览 评分:7.3
学霸的迷宫 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char c[1007][1007];int vis[1007][1007];int…… 题解列表 2023年02月21日 0 点赞 0 评论 326 浏览 评分:0.0
常规解法 求金币 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,k=0,m=0,sum=0; cin>>n; …… 题解列表 2023年02月21日 0 点赞 0 评论 399 浏览 评分:9.9
蓝桥杯2022年第十三届省赛真题-GCD 摘要:解题思路://考察gcd性质,根据更相减损术可以知道一个等式:gcd(a,b)=gcd(a,b-a) 当然这里的前提时a<=b;//所以gcd(a+k,b+k)=gcd(a+k,b-a) 这里的a…… 题解列表 2023年02月20日 0 点赞 0 评论 1789 浏览 评分:9.9
创建vector数组对n进行分配并搜索 摘要:解题思路:空间换时间,使用创建多个vector存储求完数位和的数,从1开始计算,由于同一数位和的数小的一定在前面,所以直接push_back尾部插入. 插入完成后再用循环对vector的…… 题解列表 2023年02月20日 0 点赞 0 评论 263 浏览 评分:0.0