Dripping Water Wears Through a Stone
题号:NC229583
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

Dripping water wears away stone is an idiom, which originated from the Chinese book Meicheng biographyby Ban Gu of the Eastern Han Dynasty.

The idiom means that water drops continuously, can drop through the stone; persistence in metaphor, subtle power can also achieve the difficult work.


It is assumed that M drops of water can penetrate a 1 micron thick stone. How many drops of water does it take for a given N micron thick stone to break through?

输入描述:

The input is twopositive integers M (1<=M<=1000000) and N (1<=N<=100), whichrepresent the number of water droplets required to breakdown a 1 micron thickstone and the thickness of the stone respectively.

输出描述:

The output is apositive integer, that is, the number of water droplets required to break downa stone of N microns thick.

示例1

输入

复制
100000 2

输出

复制
200000