問題一覧 > 通常問題

No.169 How Many Minutes Will It Take!?

レベル : / AI推定難易度 : 109 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 680
作問者 : yuki2006
お気に入りにしたユーザー ProblemId : 340 / 自分の提出
問題文最終更新日: 2022-12-06 22:31:03
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 93 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。