夢追い人

"It takes a dreamer to make a dream come true."―Vincent Willem van Gogh

1001

Javaでの多倍長計算の練習

import java.math.*;
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner std = new Scanner(System.in);
		BigDecimal R;
		int n;
		while (std.hasNext()) {
			R=std.nextBigDecimal();
			n=std.nextInt();
			System.out.println(R.pow(n).toPlainString().replaceAll("^0|\\.?0*$",""));
		}
	}
}

カンニングしました。正規表現がわからない(;´Д`)
とにかくhasNextとかあるっぽいです。はい。
目玉はBigDecimalですけどね