(SPOJ) 18546 - Volume da TV - Solução
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws NumberFormatException, IOException { Main processando = new Main(); processando.processa(); System.exit(0); } static int leitor(BufferedReader br) throws NumberFormatException, IOException { int n; int resp = 0; int sinal = 1; while (true) { n = br.read(); if (n >= '0' && n <= '9') break; if (n == '-') sinal = -1; ...