Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Could a 'blank' image be in the tests?

d
davide.marincione (1380 points)
0 5 14
in HW6 required by (1.4k points)
Me and other students have been wondering: could images with just a black background and no rectangles be possible? If yes, how should we model the output for them? My thought is that for an image like that there would be no encoded image and just an output (0,0,0,0).
Do we have to worry about something like this or not?
Thanks in advance!
170 views
closed

1 Answer

Best answer
andrea.sterbini (207940 points)
756 1270 2377
by (208k points)
selected by
Good question.

No, I will generate at least one rectangle