vector存储写法,易懂 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;vector{ if(A.size()<B.size())return add(B,A); …… 题解列表 2023年04月26日 0 点赞 0 评论 451 浏览 评分:0.0
pair方法解决,方便易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;typedef pair<int,double> bai…… 题解列表 2023年04月26日 0 点赞 0 评论 642 浏览 评分:9.9
pair来写容易很多 摘要:解题思路:pair第一个存学号第二个存成绩然后用bool来进行判断加上sort排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp…… 题解列表 2023年04月25日 0 点赞 0 评论 434 浏览 评分:9.9
1308: 表达式计算2 摘要:```cpp #include using namespace std; const int N=10001; int a[N],b[N]; char op,k; bool key,mar…… 题解列表 2023年04月25日 0 点赞 0 评论 570 浏览 评分:6.0
哪需要那么复杂几步的事 摘要:解题思路:注意事项:参考代码:#include<cstring>#include<iostream>using namespace std;int main(){ string s; whil…… 题解列表 2023年04月25日 0 点赞 0 评论 414 浏览 评分:0.0
单词的长度 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char a[1000]; int n[300]={}; /…… 题解列表 2023年04月25日 0 点赞 0 评论 393 浏览 评分:6.0
1307: 表达式计算1 摘要:```cpp #include using namespace std; const int N=10001; int a[N],b[N]; char op,k; bool key,mar…… 题解列表 2023年04月25日 0 点赞 1 评论 667 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-砍树(树上差分) 摘要: # 解题思路 对于每一对 $$(a_i , b_i)$$,$$a_i$$ 到$$b_i$$之间的边都可以砍掉; 把可以砍掉的边权值+1,那么这条边的权值$$w$$表示砍掉这条边可以满足$$w$…… 题解列表 2023年04月25日 1 点赞 0 评论 1325 浏览 评分:8.8
简单又实用,看不懂请打死我 摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i…… 题解列表 2023年04月24日 0 点赞 0 评论 401 浏览 评分:9.9
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;const in…… 题解列表 2023年04月23日 0 点赞 0 评论 363 浏览 评分:0.0