package com.hang;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//数据行数控制
int N = sc.nextInt();
//接呼吸频率
int[] a = new int[N];
//接收脉搏频率
int[] b = new int[N];
//接受名字
String[] str = new String[N];
//录入数据,按行录入,回车表示一行数据结束
for (int i = 0; i < N; i++) {
str[i] = sc.next();
a[i] = sc.nextInt();
b[i] = sc.nextInt();
}
for (int i = 0; i < N; i++) {
//根据条件筛选数据
if (a[i] < 15 || a[i] > 20 || b[i] < 50 || b[i] > 70) {
System.out.println(str[i]);
}
}
}
}
PAT 装睡 Java
于 2022-02-18 20:09:22 首次发布