{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\r\n\tProblems 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.\u003cbr /\u003e\r\n\t\u003cbr /\u003e\r\n\tThis problem requires that you write a program to compute the exact value of \u003cspan data-scayt_word\u003d\"Rn\" data-scaytid\u003d\"3\"\u003eR\u003csup\u003en\u003c/sup\u003e\u003c/span\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.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\r\n\tThe 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.\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\r\n\tThe 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\u0026#39;t print the decimal point if the result is an integer.\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e\r\n95.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"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e\r\n548815620517731830194541.899025343415715973535967221869852721\r\n.00000005148554641076956121994511276767154838481760200726351203835429763013462401\r\n43992025569.928573701266488041146654993318703707511666295476720493953024\r\n29448126.7641210216181644302069ty09037173276672\r\n90429072743629540498.107596019456651774561044010001\r\n1.126825030131969720661201\u003c/pre\u003e\r\n\u003cp\u003e\r\n\thtjrjmjrtgj\u003c/p\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\r\n\tIf you don\u0026#39;t know how to determine \u003cspan data-scayt_word\u003d\"wheather\" data-scaytid\u003d\"1\"\u003ewheather\u003c/span\u003e \u003cspan data-scayt_word\u003d\"encounted\" data-scaytid\u003d\"2\"\u003eencounted\u003c/span\u003e the end of input:\u003cbr /\u003e\r\n\t\u003ci\u003es\u003c/i\u003e is a string and \u003ci\u003en\u003c/i\u003e is an integer\u003cbr /\u003e\r\n\t\u003cpre\u003e\r\n\t\u003cb\u003eC++\u003c/b\u003e\r\n\r\nwhile(cin\u0026gt;\u0026gt;s\u0026gt;\u0026gt;n)\r\n\r\n{\r\n\r\n...\r\n\r\n}\r\n\r\n\u003cb\u003ec\u003c/b\u003e\r\n\r\nwhile(\u003cspan data-scayt_word\u003d\"scanf\" data-scaytid\u003d\"4\"\u003escanf\u003c/span\u003e(\u0026quot;%s%d\u0026quot;,s,\u0026amp;n)\u003d\u003d2) //to see if the \u003cspan data-scayt_word\u003d\"scanf\" data-scaytid\u003d\"5\"\u003escanf\u003c/span\u003e read in as many items as you want\r\n\r\n/*while(\u003cspan data-scayt_word\u003d\"scanf\" data-scaytid\u003d\"6\"\u003escanf\u003c/span\u003e(%s%d\u0026quot;,s,\u0026amp;n)!\u003d\u003cspan data-scayt_word\u003d\"EOF\" data-scaytid\u003d\"7\"\u003eEOF\u003c/span\u003e) //this also work */\r\n\r\n{\r\n\r\n...\r\n\r\n}\u003c/pre\u003e\r\n\u003c/div\u003e"}}]}