Come nell'esercitazione 4, alcuni hanno fallito la compilazione a causa di una libreria: malloc.h. C'ho pensato un bel po', ma fin dal primo Homework mi sono raccomandato di usare SOLO LIBRERIE STANDARD ed evitare l'uso di librerie non NECESSARIE. Mi dispiace: non possiamo controllare i compiti uno a uno: siete troppi, e quindi prendetela con una certa filosofia o se preferite come un gioco con delle piccole regole da non violare. In ogni caso, gli homework danno diritto a un bonus (dipendente dal docente, mi pare fino a 3 punti per entrambi i docenti), ma a nessuno è negata la possibilita' di aspirare comunque al massimo dei voti. Ecco i test contro cui sono stati provati i vostri programmi. ---+++ Test 0 <pre style='background:lightgrey'> 8(4(6,2),5(1,*)) </pre> Output: <pre style='background:lightgrey'> 0 </pre> ---+++ Test 1 <pre style='background:lightgrey'> 8(1(6,2),5(1,*)) </pre> Output: <pre style='background:lightgrey'> 1 </pre> ---+++ Test 2 <pre style='background:lightgrey'> 1(1(1,*),*) </pre> Output: <pre style='background:lightgrey'> 1 </pre> ---+++ Test 3 <pre style='background:lightgrey'> 888(444(666,222),555(111,*)) </pre> Output: <pre style='background:lightgrey'> 0 </pre> ---+++ Test 4 <pre style='background:lightgrey'> 8(*,7(*,5(*,1(*,2(*,3))))) </pre> Output: <pre style='background:lightgrey'> 1 </pre> ---+++ Test 5 <pre style='background:lightgrey'> 10(1(8(2(7,3),3),9),2) </pre> Output: <pre style='background:lightgrey'> 1 </pre> ---+++ Test 6 <pre style='background:lightgrey'> 4(5(6(2,*),*),*) </pre> Output: <pre style='background:lightgrey'> 0 </pre> * Set ALLOWTOPICCHANGE = Users.DocentiProg1Group -- Users.IvanoSalvo - 16 Dec 2004
This topic: Programmazione1/AA0506/PZ
>
WebHome
>
HomeWork504
>
SoluzioneHomework504
Topic revision: r3 - 2005-01-26 - IvanoSalvo
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback