問題一覧 > 通常問題

No.350 d=vt

レベル : / AI推定難易度 : 151 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $0$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 456
作問者 : nmnmnmnmnmnmnm
お気に入りにしたユーザー ProblemId : 737 / 自分の提出
問題文最終更新日: 2026-06-25 09:11:16
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 133 (順位表) の他の問題:

Problem Statement

An object moves at constant velocity in one direction.
Given the velocity (m/s) to 4 decimal places and the time (s) as an integer, find the distance traveled (m), rounded down to an integer (truncating the fractional part).

It is guaranteed that the velocity is greater than 0m/s and less than 1m/s.
The velocity is always displayed to exactly 4 decimal places; digits from the 5th decimal place onward are not displayed, and they are all assumed to be 0.
The time is guaranteed to be a positive integer.

Input

$v$ $t$

$v$ represents the velocity (m/s). It is always displayed to 4 decimal places. $0.0000<v<1.0000$.
$t$ represents the time (s). The time is always a positive integer. $1 \le t \le 10000=10^4$.

Output

Output the distance traveled (m), with the fractional part truncated, on a single line.
Print a newline at the end.

Sample

Sample 1
Input
0.5000 8
Output
4

Moving at a velocity of 0.5m/s, the object has traveled 4m after 8 seconds.

Sample 2
Input
0.0123 45
Output
0

The fractional part of the answer is truncated, so the answer is 0m.

Sample 3
Input
0.2820 7000
Output
1974

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。