import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String[] position = new String[] { "Wide Receiver", "Lineman",
"Quarterback" };
double[][] data = new double[][] { { 4.5, 150, 200 },
{ 6.0, 300, 500 }, { 5.0, 200, 300 } };
while (true)
{
double ss = sc.nextDouble();
double mw = sc.nextDouble();
double ms = sc.nextDouble();
if (ss == 0 && mw == 0 && ms == 0)
break;
String result = "";
for (int i = 0; i < data.length; i++)
{
if (ss <= data[i][0] && mw >= data[i][1] && ms >= data[i][2])
result += " " + position[i];
}
System.out.println("".equals(result) ? "No positions" : result
.trim());
}
}
}
ZOJ-2321
最新推荐文章于 2021-11-15 21:45:13 发布