import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner s =new Scanner(System.in);
int hours=s.nextInt();
int M=0;
if(hours>=0&&hours<=120)
{
M=hours*20;
System.out.println(M);
}
else if(hours>120)
{
M=(hours-120)*40+2400;
System.out.println(M);
}
}
}
题目描述呢?题目输入输出案例呢?不过按照这种网站的尿性,肯定要对输入做判断,我给你输入个负数或者为空不就出问题了吗