language: Java (sun-jdk-1.7.0_10)
date: 270 days 3 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
 
/* The class name doesn't have to be Main, as long as the class is not public. */
class Main
{
  public static void main (String[] args) throws java.lang.Exception
  {
        NumberFormat nf = NumberFormat.getNumberInstance(new Locale("pt", "PT"));
        DecimalFormat df = (DecimalFormat)nf;
        df.setParseBigDecimal(true);
        BigDecimal decimal = (BigDecimal)df.parse("12.090.129.019.201.920.192.091.029.102.901.920.192.019.201.920");
        BigInteger big = decimal.toBigInteger();
        System.out.println(big);
  }
}
  • upload with new input
  • result: Success     time: 0.05s    memory: 246080 kB     returned value: 0

    12090129019201920192091029102901920192019201920