Tags:
create new tag
view all tags
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

 
8(4(6,2),5(1,*))

Output:

 
0

Test 1

 
8(1(6,2),5(1,*))

Output:

 
1

Test 2

 
1(1(1,*),*)

Output:

 
1

Test 3

 
888(444(666,222),555(111,*))

Output:

 
0

Test 4

 
8(*,7(*,5(*,1(*,2(*,3)))))

Output:

 
1

Test 5

 
10(1(8(2(7,3),3),9),2)

Output:

 
1

Test 6

 
4(5(6(2,*),*),*)

Output:

 
0

-- IvanoSalvo - 16 Dec 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-01-26 - IvanoSalvo






 
Questo sito usa cookies, usandolo ne accettate la presenza. (CookiePolicy)
Torna al Dipartimento di Informatica
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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