Logo C++ Online Judge

C++

时间限制:1 s 空间限制:128 MB
TA: 惠宇龙
统计
Description

Provide three decimals $a, b, c$.

First output the last decimal $c$, keeping $2$ decimal places.

Then output the second number, rounding to the nearest integer(四舍五入).

Format

Use one space to separate numbers

Reference

https://cplusplus.com/reference/iomanip/setprecision/

Constraint

The input decimal is less than $10^6$ and at most keep $3$ decimal places.

Please consider why this constraint is needed.

Input Example
3.241 20.48 50.166

Output Example
50.17 20
Input Example
3.241 20.51 600.1

Output Example
600.10 21