锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久九九青青国产精品,久久er国产精品免费观看8,久久精品国产久精国产http://www.shnenglu.com/vontroy/archive/2010/10/02/128300.htmlVontroyVontroySat, 02 Oct 2010 06:00:00 GMThttp://www.shnenglu.com/vontroy/archive/2010/10/02/128300.htmlhttp://www.shnenglu.com/vontroy/comments/128300.htmlhttp://www.shnenglu.com/vontroy/archive/2010/10/02/128300.html#Feedback0http://www.shnenglu.com/vontroy/comments/commentRss/128300.htmlhttp://www.shnenglu.com/vontroy/services/trackbacks/128300.html浠g爜錛?br />
import java.util.*;
import java.math.*;

public class Main{
    
public static void main( String args[] )
    
{
        Scanner in 
= new Scanner( System.in );
        
int cnt = 0;
        BigInteger fib1, fib2;
        BigInteger fla1, fla2;
        
while( in.hasNext() )
        
{
            fib1 
= BigInteger.valueOf(1);
            fib2 
= BigInteger.valueOf(2);
            
            fla1 
= in.nextBigInteger();
            fla2 
= in.nextBigInteger();
            
if( fla1.equals(BigInteger.valueOf(0)) && fla2.equals(BigInteger.valueOf(0))) break;
            
            cnt 
= 0;
            
            
whiletrue )
            
{
                
if( fib1.compareTo(fla1) >= 0 && fib1.compareTo(fla2) <= 0 ) cnt++;
                
if( fib2.compareTo(fla1) >= 0 && fib2.compareTo(fla2) <= 0 ) cnt++;
                
if( fib1.compareTo(fla2) > 0 || fib2.compareTo(fla2) > 0 ) break;
                fib1 
= fib1.add(fib2);
                fib2 
= fib2.add(fib1);
            }

            System.out.println( cnt );
        }

    }

}


Vontroy 2010-10-02 14:00 鍙戣〃璇勮
]]>
POJ 1001 Exponentiation http://www.shnenglu.com/vontroy/archive/2010/05/26/116341.htmlVontroyVontroyTue, 25 May 2010 23:30:00 GMThttp://www.shnenglu.com/vontroy/archive/2010/05/26/116341.htmlhttp://www.shnenglu.com/vontroy/comments/116341.htmlhttp://www.shnenglu.com/vontroy/archive/2010/05/26/116341.html#Feedback0http://www.shnenglu.com/vontroy/comments/commentRss/116341.htmlhttp://www.shnenglu.com/vontroy/services/trackbacks/116341.htmlExponentiation
Time Limit: 500MS Memory Limit: 10000K
Total Submissions: 68964 Accepted: 16146

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
铏界劧鏁堢巼浣庣偣鍎匡紝浣嗕唬鐮侀潪甯哥畝鍗曪紝瀹規(guī)槗瀹炵幇錛岀湡姝f瘮璧涜繕鏄緢濂界敤鐨勩傘傘?br />
import java.io.*;
import java.util.*;
import java.math.*;

public class Main{
    public static void main( String args[] )
    {
        BigDecimal num;
        int n;
        String r;
        Scanner cin = new Scanner(System.in);
        
        while(cin.hasNextBigDecimal())
        {
            num = cin.nextBigDecimal();
            n = cin.nextInt();
            
            num = num.pow(n);
            r = num.stripTrailingZeros().toPlainString();//BigDecimal.toPlainString 閬垮厤杈撳嚭鏃朵駭鐢熺瀛﹁鏁版硶褰㈠紡
            if(r.startsWith("0."))
                r = r.substring(1);
            System.out.println(r);
        }
    }
}


Vontroy 2010-05-26 07:30 鍙戣〃璇勮
]]>
久久99久久99精品免视看动漫| 国产真实乱对白精彩久久| 免费观看久久精彩视频| 国产精品女同久久久久电影院| 亚洲精品无码久久久久去q| 久久人做人爽一区二区三区| 品成人欧美大片久久国产欧美...| 久久青青草原精品影院| 久久久WWW成人免费精品| 午夜视频久久久久一区 | 久久www免费人成精品香蕉| 久久综合狠狠综合久久激情 | 精品久久8x国产免费观看| www.久久精品| 精品久久久久久久久免费影院 | 88久久精品无码一区二区毛片 | 精品久久久久久久久午夜福利| 国产亚洲精久久久久久无码| 久久亚洲国产精品成人AV秋霞 | 99久久99久久精品国产片果冻| 中文字幕久久欲求不满| 久久丝袜精品中文字幕| 久久国产劲爆AV内射—百度| 久久国产欧美日韩精品| 91秦先生久久久久久久| 久久人人爽人人爽人人av东京热| 欧美午夜精品久久久久免费视 | 亚洲人成精品久久久久| 精品熟女少妇aⅴ免费久久| 久久亚洲国产最新网站| 94久久国产乱子伦精品免费| 久久国产成人午夜AV影院| 蜜臀av性久久久久蜜臀aⅴ| 久久久久亚洲?V成人无码| 久久精品亚洲中文字幕无码麻豆| 国产精品丝袜久久久久久不卡| 久久中文字幕人妻丝袜| 久久久久亚洲AV无码去区首| 国产A级毛片久久久精品毛片| 国产激情久久久久影院老熟女免费 | 无码人妻久久一区二区三区蜜桃|