水陆距离(朴素方法易懂版) 解题思路:这思路是优质题解的思路https://blog.dotcpp.com/a/8945思路如下①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的差得绝对值与y坐标相减差的绝对值之和③:把所有水域的坐标保存起来, 题解列表 2023年12月17日 0 点赞 0 评论 733 浏览 评分:9.9
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:这里要比较六次参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >> a>>…… 题解列表 2023年12月17日 0 点赞 0 评论 490 浏览 评分:4.7
2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin >> a; if(a%2==…… 题解列表 2023年12月17日 0 点赞 0 评论 560 浏览 评分:0.0
2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a; cin >> a; if(a%2==…… 题解列表 2023年12月17日 0 点赞 0 评论 388 浏览 评分:0.0
题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:用&&参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; …… 题解列表 2023年12月17日 0 点赞 0 评论 391 浏览 评分:0.0
编写题解 3007: 收费 摘要:解题思路:注意事项:不要用int,用double参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a; …… 题解列表 2023年12月17日 0 点赞 0 评论 585 浏览 评分:0.0
sort和unique轻松解决 #includeusingnamespacestd;#definelllonglongconstintmaxn=1e6+50;inta[maxn];intmain(){intn,i;scanf("%d",&n);for(i=0;i 题解列表 2023年12月17日 0 点赞 0 评论 592 浏览 评分:9.9 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >> a>…… 题解列表 2023年12月16日 0 点赞 0 评论 425 浏览 评分:0.0 2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double n; cin>>n; if(n>0…… 题解列表 2023年12月16日 0 点赞 0 评论 651 浏览 评分:9.9 2769: 计算并联电阻的阻值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double r1,r2; cin>>r1>>r2;…… 题解列表 2023年12月16日 0 点赞 0 评论 511 浏览 评分:9.9 « 12...339340341342343344345...16501651 »
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c; cin >> a>…… 题解列表 2023年12月16日 0 点赞 0 评论 425 浏览 评分:0.0
2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double n; cin>>n; if(n>0…… 题解列表 2023年12月16日 0 点赞 0 评论 651 浏览 评分:9.9
2769: 计算并联电阻的阻值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double r1,r2; cin>>r1>>r2;…… 题解列表 2023年12月16日 0 点赞 0 评论 511 浏览 评分:9.9