代码:
1 import java.util.*;
2 public class Main {
3 public static void main (String [] args) {
4 Scanner s=new Scanner(System.in);
5 int t=s.nextInt();
6 int wage=0;
7 if(t<=4) {
8 wage=50;
9 }
10 else if(t>4&&t<=8) {
11 wage=50+20*(t-4);
12 }
13 else if(t>8) {
14 wage=50+20*4+30*(t-8);
15 }
16 System.out.println(wage);
17 }
18 }