2664: 蓝桥杯2022年第十三届省赛真题-求和 摘要:解题思路:从a1到a5为例,将式子转换为:S=a1*(a2+a3+a4+a5)+a2*(a3+a4+a5)+a3*(a4+a5)+a4*a5先求出全部和,然后依次往后减,最后将结果加到s注意事项:最好…… 题解列表 2023年10月06日 0 点赞 0 评论 257 浏览 评分:0.0
高精度加法(vector) c++ 简单易懂 摘要:#include <iostream> #include <vector> using namespace std; vector<int> add(vector<int> &x,vector<…… 题解列表 2023年10月04日 0 点赞 0 评论 229 浏览 评分:9.9
刻录光盘(c++) 摘要:## 解题思路 求强联通分量,统计入度为0的即可 ## 参考代码 ```cpp #include using namespace std; const int N = 1e4 + 5;…… 题解列表 2023年10月03日 0 点赞 0 评论 325 浏览 评分:9.9
高精度加法 摘要:解题思路:通过都题目可以知道用普通的加法是解决不了的,整数类型的最大到21亿,即使使用 long long最大也不过2^64,所以要对100位的数进行加减操作的话要用到高精度加法。首先,通过字符串的方…… 题解列表 2023年10月01日 0 点赞 0 评论 276 浏览 评分:9.9
2838: 有趣的跳跃 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[3005],b[3005],c=0,x…… 题解列表 2023年10月01日 0 点赞 0 评论 250 浏览 评分:9.9
字符串解法 摘要:解题思路:如果要求每一位的数字,常规思路应该是整除,这个只是有点复杂并不难,本来想用一个数组的,后来觉得数组也有点麻烦,就直接用了字符串(其实是相似的道理)注意事项:字符串要使用string进行定义参…… 题解列表 2023年09月30日 0 点赞 0 评论 281 浏览 评分:9.9
结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { struct student { string Xue…… 题解列表 2023年09月29日 0 点赞 0 评论 238 浏览 评分:0.0
遍历树——直接硬搜(思路超简单) 摘要:解题思路:开多几个数组分别记录每个店的各种元素(也可以考虑用结构体)(a-父亲节点,b-该点具体值,c-左孩子节点,d-右孩子节点,p-旗帜 )本题的关键在于一个点距离另一个点的距离,函数中可设一个该…… 题解列表 2023年09月27日 0 点赞 0 评论 267 浏览 评分:9.9
1853: 蓝桥杯基础练习-数列排序 摘要:解题思路:注意事项:参考代码: #include<iostream> using namespace std; #include<vector> #include<algorithm> …… 题解列表 2023年09月27日 0 点赞 0 评论 266 浏览 评分:0.0
1850: 判断第几天 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string str; in…… 题解列表 2023年09月27日 0 点赞 0 评论 171 浏览 评分:0.0