No.169 How Many Minutes Will It Take!?
タグ : / 解いたユーザー数 680
作問者 :
Problem Statement
Yukiko is trying to copy a large file.
Since the copy takes a long time, she checked on it after a while, and it displayed
"$K$% complete. $S$ minutes remaining."
on the screen.
Yukiko now wants to know how many minutes this file copy will take in total,
but she is not good at arithmetic and cannot calculate it.
On her behalf, please calculate the total processing time (in minutes).
Truncate the fractional part of the answer and give only the integer part.
Assume that the copy speed per unit time is constant.
The completion percentage Yukiko saw can also display decimals, but you may assume that she saw it at the moment it was exactly an integer.
Input
$K$ $S$
All inputs are given as integers.
$1 \le K \le 99 $
$1 \le S \le 1000000=10^6 $
Note that $K$ is in units of %.
Output
Output the time the processing takes.
However, truncate the fractional part and output only the integer part.
Print a newline at the end.
Sample
Sample 1
Input
50 30
Output
60
$50$% elapsed means exactly half is done, so the whole copy takes 2 times as long, which is $60$ minutes.
Sample 2
Input
99 1000
Output
100000
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。