3000:交换值(题解) 摘要:解题思路:交换值注意事项:wu参考代码:#includeusing namespace std; int main() { int a,b; …… 题解列表 2023年11月08日 0 点赞 2 评论 326 浏览 评分:6.0
C++阶乘20行解决 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void test(){ long long num,nub=1,a=0;//nub是到当前数…… 题解列表 2023年11月07日 0 点赞 0 评论 212 浏览 评分:0.0
简易广搜代码(不用队列,只调用数组) 摘要:解题思路:与普通广搜不同,这里要统计步数,因此我们存储移动路径的数组要多一行,存储到这一位置所需的步数,即h[x][3]注意事项:参考代码:#include<bits/stdc++.h>using n…… 题解列表 2023年11月07日 0 点赞 0 评论 336 浏览 评分:9.9
简易广搜代码(不用队列,只调用数组) 摘要:解题思路:首先找到第一个非零数字,细胞数加一,再用bfs遍历,把所有非零数字变成0,这就是一个细胞。再继续寻找细胞,按以上步骤重复。注意事项:参考代码:#include<bits/stdc++.h>u…… 题解列表 2023年11月07日 0 点赞 0 评论 371 浏览 评分:0.0
2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<iomanip> using namespace std; int mai…… 题解列表 2023年11月07日 0 点赞 0 评论 321 浏览 评分:0.0
2790: 分段函数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2023年11月07日 0 点赞 0 评论 433 浏览 评分:8.0
2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int meter; cin>>met…… 题解列表 2023年11月07日 0 点赞 0 评论 275 浏览 评分:0.0
解 1981: 输出M到N的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,d; cin>>a>>b; if(a>=b)…… 题解列表 2023年11月06日 0 点赞 0 评论 259 浏览 评分:4.0
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,b1=0,c1=0,d1=0,s; …… 题解列表 2023年11月06日 1 点赞 0 评论 270 浏览 评分:10.0
2763: 计算(a+b)/c的值 摘要:解题思路:先定义几个整数注意事项:参考代码:#include<iostream>using namespace std;int main( ){int a,b,c;//定义整数a,b,ccin>>a>…… 题解列表 2023年11月06日 1 点赞 0 评论 762 浏览 评分:9.9