Draw an X
Write a function that would fill a square with symbols. The symbols on the main and secondary diagonals should be filled with a symbol inputted in the first line of the input, while the rest should be filled out by the symbol inputted in the second line of the input.
The program should output the filled square.
Input | Output |
|---|---|
$ | $...$ |
Constraints
Time limit: 1.6 seconds
Memory limit: 512 MB
Output limit: 1 MB
To check your solution you need to sign in
Sign in to continue
Sign in to your account