Read the integer $P$ from input.

Print the opening bracket ($\texttt{[}$). Then print $P/10$ (integer division) plus characters ($\texttt{+}$), followed by $10-(P/10)$ period characters ($\texttt{.}$). Next, print the closing bracket ($\texttt{]}$). Finally print the percentage rounded down to nearest integer.

For example, when $P = 62.3$, you will print $P/10 = 6$ plus characters, followed by $10-(P/10) = 4$ period characters. Finally print $62\%$

Statistics

88% Solution Ratio
kimiyukiEarliest, Feb '19
mahadi97Fastest, 0.0s
ReduancsLightest, 0 B
saitotaShortest, 49B
Toph uses cookies. By continuing you agree to our Cookie Policy.