Task 313 - Seven Segment Decoder

Back to General discussions forum

veen     2023-01-12 10:38:56

Hi! Please kindly help with this problem.

I had my solution correct on the interactive display but when I submit the solution, the checker says "Wrong shape for digit '1'". Is this an error with the checker/interactive display or am I missing something?

Demo Image insertion with Markdown

Regards, Kaisan

Rodion (admin)     2023-01-12 10:51:55
User avatar

Kaisan, Hi!

No idea how you generated your solution, but it gives segments in shape of "0" for input 0001 and so on, everything shifted by one :)

Interactive display would show 1234567890 for correct decoder. Though I agree it is bit counterintuitive that zero is in the end. But it iterates inputs in this specific order (0001 ... 1001, then 0000)

veen     2023-01-12 11:14:15

When I tried to simplify the segment functions, the display gave me weird output because I thought it starts with zero. Then I tried to turn off the segment individually and noticed a weird behaviour with the bits (shifted by one).

Thanks for the clarification tho! Definitely clears my confusion right away :)

Please login and solve 5 problems to be able to post at forum