1. 程式人生 > >JAVA科學記數法

JAVA科學記數法

import java.io.*;
import java.math.*;
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String str = in.readLine();
        BigDecimal db = new BigDecimal(str);
        System.out.println(db.toPlainString());
    }
}

因為用 Scanner 超時了