Don't know what more to do.
Can I assume that each input line consist of 2 numbers? Or do I need to worry about inputs like
- Code: Select all
1 234
1
3 456
0 0
Can I assume that the input are within the range specified 0 - 10 for first number and 0 - 99 999 999 for the second number? Or do I need to worry about boundary checks, and if I need how should too big numbers be handled? cutoff at limit, don't print anything?
How should this input case be handled? (x is a number)
- Code: Select all
0 x
Should I terminate or process it as normal? By normal I mean print out an empty 2 columns 3 rows filled with blanks for each digit in x and 1 column of blanks between each digit.
I choosed to process as normal.
How is the input formatted? Do I need to worry about delimeters, white spaces?
Examples.
12345678
12, 345, 678
12. 345. 678
12 345 678
According to specification the format is 99, 999, 999 but in the sample input they write like
- Code: Select all
2 12345
3 67890
0 0
I am confused!!
A sample input for my program
- Code: Select all
1 123456
2 7890
3 009
0 0
output
- Code: Select all
.....-...-.......-...-.
..|...|...|.|.|.|...|..
.....-...-...-...-...-.
..|.|.....|...|...|.|.|
.....-...-.......-...-.
.--...--...--...--.
...|.|..|.|..|.|..|
...|.|..|.|..|.|..|
......--...--......
...|.|..|....|.|..|
...|.|..|....|.|..|
......--...--...--.
.---...---...---.
|...|.|...|.|...|
|...|.|...|.|...|
|...|.|...|.|...|
.............---.
|...|.|...|.....|
|...|.|...|.....|
|...|.|...|.....|
.---...---...---.
I use Java and '|' '-' ' ', I have replaced ' ' with '.' here for better vision.
Have i missed something? I give up!
