Logo
(追記) (追記ここまで)

32458번 - Just Round Down 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 1024 MB26532006185875.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.

제한

  • 0 < x ≤ 10^8$ The input contains several digits and exactly one decimal point.
  • The last printable character of the input must be a digit.
  • There is at least one digit before the decimal point.
  • There is no leading zero for $x ≥ 1$.
  • The size of input fle is no more than 15ドル$ bytes.

예제 입력 1

1999.99

예제 출력 1

1999

예제 입력 2

2.00000

예제 출력 2

2

노트

The problem description is a fiction written by ChatGPT.

출처

ICPC > Regionals > Asia Pacific > Taiwan > Taiwan Online Programming Contest > TOPC 2024 J번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /