LCC/Moose '19 Contest 1 J1 - Jaden Smith

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Problem type

After browsing Jaden Smith's Twitter for the last two hours, Feng thinks to himself:

How many positive integers are there that are less than N?

Input Specification

A single line containing N {(-2^{22} \le N \le 2^{22})}, the number. N will have at most 8 decimal places.

Output Specification

A single line, the number of positive integers less than N.


Subtask 1 [25%]

{N \in \mathbb{Z} \mid N > 0} (N is a positive integer)

Subtask 2 [25%]

{N \in \mathbb{Z}} (N is an integer)

Subtask 3 [50%]

{N \in \mathbb{R}} (N is a real number)

Sample Input


Sample Output



There are no comments at the moment.