(URI) Notas e Moedas - Solução
Desempenho no URI: import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String linha = br.readLine(); String[] dinheiro = new String[2]; dinheiro = linha.split("\\."); int notas = Integer.parseInt(dinheiro[0]); int moedas = Integer.parseInt(dinheiro[1]); int restoNotas = 0; int notasCem = notas/100; restoNotas = (notas-notasCem*100); int notasCinquenta = restoNotas/50; restoNotas -= notasCinquenta*50; int notasVinte = restoNotas/20; restoNotas -= notasVinte*20; int notasDez = restoNotas/10; restoNotas -= notasDez*10; int notasCinco = restoNotas/5; restoNotas -= notasCinco*5; int notasDois = restoNotas/2; restoNotas -= notasDois*2;