DIGITAL FONT
Statement
you will be given a number [[n]] and [[d]] character for drawing and [[e]] character filling the empty space, you have to convert [[n]] to digital font as
illustrated in examples
Here are the numbers:
<<`
.....
.###.
.#.#.
.#.#.
.#.#.
.###.
.....
.....
..#..
..#..
..#..
..#..
..#..
.....
.....
.###.
...#.
.###.
.#...
.###.
.....
.....
.###.
...#.
.###.
...#.
.###.
.....
.....
.#.#.
.#.#.
.###.
...#.
...#.
.....
.....
.###.
.#...
.###.
...#.
.###.
.....
.....
.###.
.#...
.###.
.#.#.
.###.
.....
.....
.###.
...#.
...#.
..#..
.#...
.....
.....
.###.
.#.#.
.###.
.#.#.
.###.
.....
.....
.###.
.#.#.
.###.
...#.
.###.
.....`>>
Input description
<<line 1:>> [[n]] integer that you will convert to digital font
<<line 2:>> [[d]] character for drawing
<<line 3:>> [[e]] character for empty space
Output description
you have to output [[n]] converted
Constraints
0 ≤ [[n]] < 10^15
Game modes
Fastest
Test cases
Simple one Test
Input
7
#
.
Output
.....
.###.
...#.
...#.
..#..
.#...
.....
Validator 1 Validator
Input
1
#
.
Output
.....
..#..
..#..
..#..
..#..
..#..
.....
2 digits Test
Input
51
#
.
Output
..........
.###...#..
.#.....#..
.###...#..
...#...#..
.###...#..
..........
Validator 2 Validator
Input
92
#
.
Output
..........
.###..###.
.#.#....#.
.###..###.
...#..#...
.###..###.
..........
3 digits and different look Test
Input
156
@
`
Output
```````````````
``@```@@@``@@@`
``@```@````@```
``@```@@@``@@@`
``@`````@``@`@`
``@```@@@``@@@`
```````````````
Validator 3 Validator
Input
789
@
`
Output
```````````````
`@@@``@@@``@@@`
```@``@`@``@`@`
```@``@@@``@@@`
``@```@`@````@`
`@````@@@``@@@`
```````````````
Hard one Test
Input
984651616
$
N
Output
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
N$$$NN$$$NN$N$NN$$$NN$$$NNN$NNN$$$NNN$NNN$$$N
N$N$NN$N$NN$N$NN$NNNN$NNNNN$NNN$NNNNN$NNN$NNN
N$$$NN$$$NN$$$NN$$$NN$$$NNN$NNN$$$NNN$NNN$$$N
NNN$NN$N$NNNN$NN$N$NNNN$NNN$NNN$N$NNN$NNN$N$N
N$$$NN$$$NNNN$NN$$$NN$$$NNN$NNN$$$NNN$NNN$$$N
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Validator 4 Validator
Input
651984616
$
N
Output
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
N$$$NN$$$NNN$NNN$$$NN$$$NN$N$NN$$$NNN$NNN$$$N
N$NNNN$NNNNN$NNN$N$NN$N$NN$N$NN$NNNNN$NNN$NNN
N$$$NN$$$NNN$NNN$$$NN$$$NN$$$NN$$$NNN$NNN$$$N
N$N$NNNN$NNN$NNNNN$NN$N$NNNN$NN$N$NNN$NNN$N$N
N$$$NN$$$NNN$NNN$$$NN$$$NNNN$NN$$$NNN$NNN$$$N
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Impossible Test
Input
78945615365478
*
{
Output
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
{***{{***{{***{{*{*{{***{{***{{{*{{{***{{***{{***{{***{{*{*{{***{{***{
{{{*{{*{*{{*{*{{*{*{{*{{{{*{{{{{*{{{*{{{{{{*{{*{{{{*{{{{*{*{{{{*{{*{*{
{{{*{{***{{***{{***{{***{{***{{{*{{{***{{***{{***{{***{{***{{{{*{{***{
{{*{{{*{*{{{{*{{{{*{{{{*{{*{*{{{*{{{{{*{{{{*{{*{*{{{{*{{{{*{{{*{{{*{*{
{*{{{{***{{***{{{{*{{***{{***{{{*{{{***{{***{{***{{***{{{{*{{*{{{{***{
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
Validator 5 Validator
Input
61537894565478
*
{
Output
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
{***{{{*{{{***{{***{{***{{***{{***{{*{*{{***{{***{{***{{*{*{{***{{***{
{*{{{{{*{{{*{{{{{{*{{{{*{{*{*{{*{*{{*{*{{*{{{{*{{{{*{{{{*{*{{{{*{{*{*{
{***{{{*{{{***{{***{{{{*{{***{{***{{***{{***{{***{{***{{***{{{{*{{***{
{*{*{{{*{{{{{*{{{{*{{{*{{{*{*{{{{*{{{{*{{{{*{{*{*{{{{*{{{{*{{{*{{{*{*{
{***{{{*{{{***{{***{{*{{{{***{{***{{{{*{{***{{***{{***{{{{*{{*{{{{***{
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
All Digits Test
Input
0123456789
&
,
Output
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,&&&,,,&,,,&&&,,&&&,,&,&,,&&&,,&&&,,&&&,,&&&,,&&&,
,&,&,,,&,,,,,&,,,,&,,&,&,,&,,,,&,,,,,,&,,&,&,,&,&,
,&,&,,,&,,,&&&,,&&&,,&&&,,&&&,,&&&,,,,&,,&&&,,&&&,
,&,&,,,&,,,&,,,,,,&,,,,&,,,,&,,&,&,,,&,,,&,&,,,,&,
,&&&,,,&,,,&&&,,&&&,,,,&,,&&&,,&&&,,&,,,,&&&,,&&&,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Validator 6 Validator
Input
9871236540
#
,
Output
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,###,,###,,###,,,#,,,###,,###,,###,,###,,#,#,,###,
,#,#,,#,#,,,,#,,,#,,,,,#,,,,#,,#,,,,#,,,,#,#,,#,#,
,###,,###,,,,#,,,#,,,###,,###,,###,,###,,###,,#,#,
,,,#,,#,#,,,#,,,,#,,,#,,,,,,#,,#,#,,,,#,,,,#,,#,#,
,###,,###,,#,,,,,#,,,###,,###,,###,,###,,,,#,,###,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Solution language
Solution
Stub generator input