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%:


Given the percentage in floating point, floor it down to the nearest 10 (62 becomes 60, 65 becomes 60, 68 becomes 60 and so on.).


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


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


[++++++....] 62%



86% Solution Ratio

kimiyukiEarliest, Feb '19

mahadi97Fastest, 0.0s

ReduancsLightest, 0 B

saitotaShortest, 49B


Login to submit

Related Contests

Tough Dash, February 2019 Ended at 2019-02-07 12:40:00 +0000 UTC
CGS Intra School Programming Contest 2019 Ended at 2019-12-05 09:10:00 +0000 UTC