АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

979. A61

Time Limit: 1 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

+

Дано действительное число x (1000000000 < x < 1000000000). Вывести целую часть числа x, затем - число x, округлённое до ближайшего целого, затем - число x без дробных цифр

Целой частью числа x называется наибольшее целое число, не превосходящее x.

Input

Число x

Output

Три целых числа в столбик - целая часть, чило округлённое и число без дробной части.

Sample

InputOutput
Пример 1. Вход:
-3.14
Пример 1. Выход:
-4
-3
-3

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1024. A58 979. 1037. A63 957. A67g 986. A68b
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.437 sec.
© Copyright VSTU, AVT, Nosov D.A.