Mock CCC '26 J1 - Changes
View as PDFMock Canadian Computing Competition: 2026 Junior #1
Everything is going fine. Then suddenly, the world starts spinning. Everyone is confused about their surroundings as a whirlwind of colours flood their vision. Then, just as suddenly as it came, the spinning stops, and everything goes back to how it originally was. Originally, didn't think anything of it. It was just a migraine, and he's not unfamiliar to those. But has an inkling that something is wrong. Something is terribly wrong, but he just can't put his finger on the issue.
A few months pass. As reaches the end of the semester, he was concerned about his math grade. After all, a wasn't the best look on his report card, but there wasn't much he could do except to ask his math teacher to round him up. To his surprise, his math teacher told him that his final grade was
. Confused, thanks his teacher for rounding him up. But his teacher looked at quizzically, informing him that
has always rounded up to
. Puzzled, tells his other friends about this strange occurrence, where his friends also told him that his mark rounds up to
. In fact, even
rounds up to
!
This was the change that occurred. Now, any number with a decimal part greater than or equal to will round up, and anything below that will round down. For example,
rounds up to
but
rounds down to
.
With these new changes to rounding in place, requests you to help him write a program to help him round numbers!
Input Specification
The first and only line of input contains a number .
Output Specification
In one line, output the number rounded to the nearest INTEGER.
Sample Input 1
73.32
Output for Sample Input 1
74
Explanation of Output for Sample Input 1
is greater than
, so it rounds up.
Sample Input 2
73.22
Output for Sample Input 2
73
Explanation of Output for Sample Input 2
is less than
, so it rounds down.
Comments