标签:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); double m=sc.nextDouble(); if(n<=40) System.out.printf("%.2f",(n*m)); else if(n<=50) System.out.printf("%.2f",(n-40)*1.5*m+40*m); else System.out.printf("%.2f",40*m+15*m+(n-50)*2*m); } }
标签:
原文地址:http://www.cnblogs.com/watchfree/p/5346948.html