| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 2653 | 2006 | 1858 | 75.621% |
The Taiwan Online Programming Contest is a prestigious event that attracts talented programmers from all over the world. Known for its challenging problems and competitive environment, the contest has become a platform where only the best can prove their skills. However, there is one problem setter who has gained a notorious reputation among participants. This problem setter, known only by their pseudonym “truckski,” has an unusual fascination with numbers – particularly big numbers, floating-point numbers, and any kind of mathematical challenge that involves precise calculations. truckski has a unique style of creating problems that often requires competitors to think carefully about the properties of numbers and how they can be manipulated.
In this year’s edition of the Taiwan Online Programming Contest, truckski has come up with a seemingly simple yet tricky problem. The problem revolves around a fundamental concept in mathematics: rounding down a floating-point number to its nearest integer. While this task might appear straightforward at first glance, truckski’s twist lies in the precision required and the ability to handle a variety of foating-point values accurately.
Your task is to help the participants solve this problem by writing a program that takes a positive foating-point number as input and outputs the result of rounding it down to the nearest integer. This process is often referred to as taking the “floor” of a number. The floor of a number is the greatest integer that is less than or equal to the number itself.
The input consists of a single line containing one positive floating-point number $x$.
The output should be a single integer, which is the floor of the input number $x$. Please do not output decimal points.
1999.99
1999
2.00000
2
The problem description is a fiction written by ChatGPT.
ICPC > Regionals > Asia Pacific > Taiwan > Taiwan Online Programming Contest > TOPC 2024 J번