题目 1183: 人见人爱A+B题解 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main(){ int ah,am,as,bh,bm,bs,ch,c…… 题解列表 2023年05月19日 0 点赞 0 评论 175 浏览 评分:0.0
链式前向星解法 摘要:解题思路:本题写一个链式前向星的写法,仅供参考由于我们知道在一棵树上任意两个点的路径经过的边是唯一确定的因此对于每一个路径我们对路径上的边的边权加一,这里我们可以通过树上差分在O(n)复杂度内解决,一…… 题解列表 2023年05月19日 0 点赞 1 评论 464 浏览 评分:6.0
非常简单(看不懂打我) 摘要:解题思路:输入后将循环倒着之后输出就好了注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[15]; for(…… 题解列表 2023年05月18日 0 点赞 0 评论 187 浏览 评分:0.0
题目 1000: [竞赛入门]简单的a+b解答 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cou…… 题解列表 2023年05月18日 0 点赞 0 评论 198 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; for…… 题解列表 2023年05月17日 0 点赞 0 评论 251 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void count(string s){ int a=s.size(); …… 题解列表 2023年05月17日 0 点赞 0 评论 171 浏览 评分:0.0
[编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[3][3]; for(int i=0…… 题解列表 2023年05月17日 0 点赞 0 评论 187 浏览 评分:0.0
转换成每一步代价不等的最短路问题,采用优先队列(堆)解决 摘要:解题思路:设堆顶的状态为x,y,fat,time。那么从x,y向四个方向搜索下一个点tx,ty时,有的方向会因为肥胖问题无法移动,这时我们减小身材,让他能达到tx,ty这个点(注意身材减小为1时,一定…… 题解列表 2023年05月17日 0 点赞 0 评论 257 浏览 评分:8.0
[竞赛入门]简单的a+b 摘要:解题思路:懒得写注意事项:无参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)…… 题解列表 2023年05月17日 0 点赞 2 评论 147 浏览 评分:6.0
简单计算机器实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; char c; cin>…… 题解列表 2023年05月17日 0 点赞 0 评论 164 浏览 评分:0.0