1102: 火车票退票费计算(函数专题)
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);double price=cin.nextDouble();double x=price*0.05;double y=(int)x;if(x-y>=0.25&&x-y<0.75) y+=0.5;if(x-y>=0.75) y+=1;System.out.println(y);}
}