{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"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. \r\u003cbr\u003e\r\u003cbr\u003eThis problem requires that you write a program to compute the exact value of R\u003csup\u003en\u003c/sup\u003e where R is a real number ( 0.0 \u0026lt; R \u0026lt; 99.999 ) and n is an integer such that 0 \u0026lt; n \u0026lt;\u003d 25. "}},{"title":"Input","value":{"format":"HTML","content":"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."}},{"title":"Output","value":{"format":"HTML","content":"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\u0027t print the decimal point if the result is an integer."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e95.123 12\r\n0.4321 20\r\n5.1234 15\r\n6.7592 9\r\n98.999 10\r\n1.0100 12\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e548815620517731830194541.899025343415715973535967221869852721\r\n.00000005148554641076956121994511276767154838481760200726351203835429763013462401\r\n43992025569.928573701266488041146654993318703707511666295476720493953024\r\n29448126.764121021618164430206909037173276672\r\n90429072743629540498.107596019456651774561044010001\r\n1.126825030131969720661201\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"If you don\u0027t know how to determine wheather encounted the end of input:\r\u003cbr\u003e\u003ci\u003es\u003c/i\u003e is a string and \u003ci\u003en\u003c/i\u003e is an integer\r\u003cbr\u003e\u003cpre\u003e\u003cb\u003eC++\u003c/b\u003e\r\u003cbr\u003ewhile(cin\u0026gt;\u0026gt;s\u0026gt;\u0026gt;n)\r\u003cbr\u003e{\r\u003cbr\u003e...\r\u003cbr\u003e}\r\u003cbr\u003e\u003cb\u003ec\u003c/b\u003e\r\u003cbr\u003ewhile(scanf(\"%s%d\",s,\u0026amp;n)\u003d\u003d2) //to see if the scanf read in as many items as you want\r\u003cbr\u003e/*while(scanf(%s%d\",s,\u0026amp;n)!\u003dEOF) //this also work */\r\u003cbr\u003e{\r\u003cbr\u003e...\r\u003cbr\u003e}\u003c/pre\u003e"}}]}