标签:
public class Main8 { public static void main(String[] args) { java.util.Scanner input = new java.util.Scanner(System.in); int amount = input.nextInt(); int re = amount; int number1 = re/100; re = re%100; int number2 = re/25; re = re%25; int number3 = re/10; re = re%10; int number4 = re/5; re = re%5; int number5 = re; System.out.println(number1+number2+number3+number4+number5); } }
标签:
原文地址:http://www.cnblogs.com/aicpcode/p/4396293.html