锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品国产2020,91超碰碰碰碰久久久久久综合,热久久视久久精品18http://m.shnenglu.com/MiYu/category/14404.html ______________鐧界櫧銇眿zh-cnFri, 10 Sep 2010 10:27:34 GMTFri, 10 Sep 2010 10:27:34 GMT60HDOJ 1063 HDU 1063 Exponentiation JAVA 緙栧啓 ACM 1063 IN HDUhttp://m.shnenglu.com/MiYu/archive/2010/09/10/126325.htmlMiYuMiYuFri, 10 Sep 2010 09:01:00 GMThttp://m.shnenglu.com/MiYu/archive/2010/09/10/126325.htmlhttp://m.shnenglu.com/MiYu/comments/126325.htmlhttp://m.shnenglu.com/MiYu/archive/2010/09/10/126325.html#Feedback0http://m.shnenglu.com/MiYu/comments/commentRss/126325.htmlhttp://m.shnenglu.com/MiYu/services/trackbacks/126325.htmlMiYu鍘熷垱, 杞笘璇鋒敞鏄?: 杞澆鑷?nbsp;______________鐧界櫧銇眿    

 

棰樼洰鍦板潃:  http://acm.hdu.edu.cn/showproblem.php?pid=1063

棰樼洰鎻忚堪:

Exponentiation

Time Limit: 1000/500 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1696    Accepted Submission(s): 376


Problem Description
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.

This problem requires that you write a program to compute the exact value of Rn where R is a real number ( 0.0 < R < 99.999 ) and n is an integer such that 0 < n <= 25.
 

Input
The input will consist of a set of pairs of values for R and n. The R value will occupy columns 1 through 6, and the n value will be in columns 8 and 9.
 

Output
The output will consist of one line for each line of input giving the exact value of R^n. Leading zeros should be suppressed in the output. Insignificant trailing zeros must not be printed. Don't print the decimal point if the result is an integer.
 

Sample Input
95.123 12 0.4321 20 5.1234 15 6.7592 9 98.999 10 1.0100 12
 

Sample Output
548815620517731830194541.899025343415715973535967221869852721 .00000005148554641076956121994511276767154838481760200726351203835429763013462401 43992025569.928573701266488041146654993318703707511666295476720493953024 29448126.764121021618164430206909037173276672 90429072743629540498.107596019456651774561044010001 1.126825030131969720661201
 

榪欎袱澶╃獊鐒舵兂瀛︿範(fàn)涓婮AVA 鐨勫ぇ鏁?nbsp; 灝卞涔?fàn)浜嗕竴涓? 榪欓亾棰樺湪PKU A鎺変簡鐨? 涓嶈繃鍦?HDU 涓鐩存病榪? 涓嶇煡閬撴湁浠涔堟伓蹇冪殑鏁版嵁鎶婃垜緇欐伓蹇冩帀浜? 寰堥儊闂?

涓嶈繃 鐢↗AVA鐩存帴 1 A 浜?.......... 寰堢畝鍗曠殑璇?/p>

 

浠g爜濡備笅 :

 

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Scanner;
import java.math.*;

/**
 *
 * @author baiyun
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner in = new Scanner ( System.in );
        BigDecimal num;
        int exp;
        while ( in.hasNext() ){
            num = in.nextBigDecimal();
            exp = in.nextInt();
            num = num.pow ( exp );
            num = num.stripTrailingZeros();
            String out = num.toPlainString();
            if ( out.charAt(0) == '0' )
                 out = out.substring(1);
            System.out.println( out );
        }
    }
}

 


 



MiYu 2010-09-10 17:01 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航| 久久久久综合国产欧美一区二区| 久久青青色综合| 人妻丰满AV无码久久不卡| 97r久久精品国产99国产精| 九九热久久免费视频| 无码人妻精品一区二区三区久久久| 99久久国产综合精品麻豆| 午夜视频久久久久一区| 亚洲国产精品无码久久一区二区| 精品久久久久久综合日本| 99久久综合国产精品免费| 国产精品岛国久久久久| 狠狠色狠狠色综合久久| 国产精品美女久久久久AV福利| 一本色道久久综合亚洲精品| 国产精品免费久久久久久久久| 日韩人妻无码精品久久免费一| 精品久久人人爽天天玩人人妻| 香蕉久久夜色精品升级完成| 性做久久久久久免费观看| 2020最新久久久视精品爱| 久久精品人人做人人爽97| 精品国产乱码久久久久久呢 | 久久精品国产欧美日韩| 香蕉久久夜色精品升级完成| 欧美一区二区久久精品| 精品免费tv久久久久久久| 人妻无码αv中文字幕久久琪琪布 人妻无码久久一区二区三区免费 人妻无码中文久久久久专区 | 欧美午夜A∨大片久久 | 99久久综合狠狠综合久久止| 亚洲国产美女精品久久久久∴| 亚洲国产成人精品女人久久久 | 麻豆av久久av盛宴av| 久久久久国产精品三级网| 国产精品成人99久久久久 | 少妇内射兰兰久久| 亚洲精品高清国产一线久久| 狠狠色婷婷久久综合频道日韩| 精品伊人久久久| 人妻无码中文久久久久专区|