Vincent Massey SS - 2014 Senior Contest #1
Problem C: Mohan's Physics Problem
Despite Mohan’s tests being hard enough, you realized after you started that you forgot your calculator! You work out the answer to the quantum physics question to be nk. Although you don’t have a calculator, you have your laptop at your disposal. You decide to write a program to solve the answer for you.
Given n and k, find the value of nk expressed in scientific notation.
Two space-separated integers, n and k (2 ≤ n ≤ 100; 1 ≤ k ≤ 500,000).
Print the value of nk using scientific notation. Print the significand on the first line and the exponent on the next. The significant must be rounded and displayed to 3 significant digits.
Point Value: 7
Time Limit: 2.00s
Memory Limit: 16M
Added: Nov 04, 2014
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3