[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void count(string s){ int a=s.size(); …… 题解列表 2023年05月17日 0 点赞 0 评论 247 浏览 评分:0.0
[编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[3][3]; for(int i=0…… 题解列表 2023年05月17日 0 点赞 0 评论 282 浏览 评分:0.0
转换成每一步代价不等的最短路问题,采用优先队列(堆)解决 摘要:解题思路:设堆顶的状态为x,y,fat,time。那么从x,y向四个方向搜索下一个点tx,ty时,有的方向会因为肥胖问题无法移动,这时我们减小身材,让他能达到tx,ty这个点(注意身材减小为1时,一定…… 题解列表 2023年05月17日 0 点赞 0 评论 381 浏览 评分:8.0
[竞赛入门]简单的a+b 摘要:解题思路:懒得写注意事项:无参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)…… 题解列表 2023年05月17日 0 点赞 2 评论 222 浏览 评分:6.0
简单计算机器实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; char c; cin>…… 题解列表 2023年05月17日 0 点赞 0 评论 245 浏览 评分:0.0
亲和串,简洁扼要,正解。(加入了循环队列思想哦) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>#include<cstdio>#include<algorithm>using namespace std…… 题解列表 2023年05月17日 0 点赞 0 评论 363 浏览 评分:9.9
枚举法 列出所有的可能 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,e,f; for(a=0…… 题解列表 2023年05月17日 0 点赞 0 评论 329 浏览 评分:0.0
题目 1172: 计算两点间的距离解答 摘要:解题思路:(x1-x2)^2+(y1-y2)^2=d^2注意事项:参考代码:#include<iostream>#include<cstdio>#include<cmath>using namespa…… 题解列表 2023年05月17日 0 点赞 0 评论 286 浏览 评分:0.0
题目 1171: 蟠桃记解答 摘要:解题思路:a[n]=2*(a[n]+1)注意事项:别忘了if(n==1) result=1;这两行!参考代码:#includeusing namespace std; int f(int n){ …… 题解列表 2023年05月17日 0 点赞 0 评论 297 浏览 评分:0.0
一个刚刚开始刷题的菜鸟!! 摘要:解题思路:仔细观察,将这个数列构造出来就行了;注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,sum=0; int…… 题解列表 2023年05月16日 0 点赞 0 评论 366 浏览 评分:9.9