用max算法比较同时返回较大的值 摘要:解题思路:面对两个值,用max算法比较同时返回较大的值。注意事项:清零时,清除的是积累的连续count,意味着断开重新比较。参考代码:#include<iostream> #include<algo…… 题解列表 2024年12月03日 0 点赞 0 评论 78 浏览 评分:0.0
题解 2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0,res=0; cin>>…… 题解列表 2023年11月10日 0 点赞 0 评论 107 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,x,y,z=0,maxx=0; ci…… 题解列表 2023年07月09日 0 点赞 0 评论 117 浏览 评分:0.0
编写题解 2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,a,b,s=0,max=0; cin>>n; fo…… 题解列表 2024年05月23日 0 点赞 0 评论 147 浏览 评分:0.0
2814: 正常血压 摘要:注意事项:C++语言,别弄错了参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,b,z=0,maxx=0;…… 题解列表 2023年07月10日 0 点赞 0 评论 149 浏览 评分:6.0
简单易懂(狗头) 摘要:解题思路:注意事项: 本题求解的是血压连续正常的最长小时数,连续正常!连续正常!连续正常!意思是一旦不正常,前面算正常的时间都需要重新算起。所以本题要建立一个数组,用以保存每一次的flag值,以防数…… 题解列表 2022年12月30日 0 点赞 0 评论 317 浏览 评分:8.0
正常血压c++ 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n, x, y,sum=0,max=0; cin…… 题解列表 2023年07月03日 0 点赞 0 评论 293 浏览 评分:9.3
2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,b,sum=0,maxx=0;//定…… 题解列表 2024年02月06日 0 点赞 0 评论 132 浏览 评分:9.9
2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,spring=0,summer…… 题解列表 2024年04月05日 0 点赞 0 评论 261 浏览 评分:9.9
题解: 正常血压 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,b,z=0,maxx=0; c…… 题解列表 2023年07月09日 0 点赞 0 评论 112 浏览 评分:9.9