Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

ASCII Progress Bar

Limits 1s, 512 MB

In this problem, you need to write a code that prints an ASCII progress bar. In each test case, you will be given a floating point number representing the percentage.

Here is an example progress bar showing 60%60\%:

[++++++....]

Given the percentage in floating point, floor it down to the nearest 1010 (6262 becomes 6060, 6565 becomes 6060, 6868 becomes 6060 and so on.).

Input

The input will contain a single floating point number PP (0.0P100.00.0 ≤ P ≤ 100.0).

Output

Print the ASCII progress bar followed by the progress percentage floored to the nearest integer.

Sample

InputOutput
62.3
[++++++....] 62%

Discussion

Statistics


91% Solution Ratio

kimiyukiEarliest, Feb '19

mahadi97Fastest, 0.0s

ReduancsLightest, 0 B

saitotaShortest, 49B

Submit

Login to submit

Editorial

Read the integer PPP from input. Print the opening bracket ([\texttt{[}[). Then print P/10P/10P/10 (...

Toph uses cookies. By continuing you agree to our Cookie Policy.