2814: 正常血压 读懂题就能做 摘要:解题思路:这个题审题时容易走偏,题目要求的是病人保持正常血压的最长小时数,而不是正常的次数,搞清楚这一点后,题目就不难了注意事项:参考代码:#include <iostream> using nam…… 题解列表 2023年04月11日 0 点赞 0 评论 190 浏览 评分:6.0
LJX............................................................... 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,a,b,sum=0,ans=0; cin>>…… 题解列表 2023年12月06日 0 点赞 0 评论 130 浏览 评分:4.7
2814 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b,m=0,c=0; scanf("%d",&n); for(int i=0;…… 题解列表 2024年03月19日 0 点赞 0 评论 222 浏览 评分:0.0
2025/7/31刷题记录 摘要:解题思路:sum记录连续的次数 max记录最大连续次数 如果不符合时sum清零但是max记录了最大的sum清零也无所谓注意事项:参考代码:#include<stdio.h>int main…… 题解列表 2025年07月31日 0 点赞 0 评论 29 浏览 评分:0.0
用max算法比较同时返回较大的值 摘要:解题思路:面对两个值,用max算法比较同时返回较大的值。注意事项:清零时,清除的是积累的连续count,意味着断开重新比较。参考代码:#include<iostream> #include<algo…… 题解列表 2024年12月03日 0 点赞 0 评论 218 浏览 评分:0.0
题解 2814: 正常血压 摘要:解题思路:注意事项:参考代码:n = int(input())c = 0max = 0while n: a,b = map(int,input().split()) if 90 <= a …… 题解列表 2024年07月30日 0 点赞 0 评论 362 浏览 评分:0.0
2814: 正常血压 摘要:解题思路:注意事项:参考代码:n=int(input())a=[0]*nb=[0]*nt=[0]*nfor i in range(n): a[i],b[i]=map(int,input().sp…… 题解列表 2024年07月06日 0 点赞 0 评论 226 浏览 评分: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 评论 254 浏览 评分:0.0
python解求得最大值 摘要:### 解题代码: ```python n = int(input()) sz = [list(map(int, input().strip().split())) for _ in range…… 题解列表 2024年04月18日 0 点赞 0 评论 192 浏览 评分:0.0
2814: 正常血压 摘要:解题思路:注意事项:参考代码:b = [] s = 0 n = int(input()) for i in range(0,n): l = list(map(int,input().s…… 题解列表 2023年02月16日 0 点赞 0 评论 294 浏览 评分:0.0