Esercizio 1

Test 1

Input

N = {2,1}->{7,3}->{11,-2}->{19,2}->NULL
M = {2,-1}->{7,-3}->{11,2}->{19,-2}->NULL
Output
N = NULL
M = {2,-1}->{7,-3}->{11,2}->{19,-2}->NULL

Test 2

Input
N = {1,-1}->{2,-1}->NULL
M = {1,1}->{2,1}->{5,3}->{3,5}->{4,2}->NULL
Output
N = {3,5}->{4,2}->{5,3}->NULL
M = {1,1}->{2,1}->{5,3}->{3,5}->{4,2}->NULL

Test 3

Input
N = {1,1}->{2,1}->{5,3}->{3,5}->{4,2}->NULL
M = NULL
Output
N = {1,1}->{2,1}->{5,3}->{3,5}->{4,2}->NULL
M = NULL

Test 4

Input
N = NULL
M = {1,1}->{2,1}->{5,3}->NULL
Output
N = {1,1}->{2,1}->{5,3}->NULL
M = {1,1}->{2,1}->{5,3}->NULL

Esercizio 2

Test 1

Input

1
(10000 3) 3
Output
(10000 3) 3 SI

Test 2

Input
3
(100 80) 592122
(5753 2892) 1263547389
(5753 2892) 441727949
Output
(100 80) 592122 SI
(5753 2892) 1263547389 SI
(5753 2892) 441727949 NO

Test 3

Input
2
(10000 5000) 4294967294
(10000 5000) 1054062240
Output
(10000 5000) 4294967294 NO
(10000 5000) 1054062240 SI

-- JulindaStefa - 18 Jan 2008

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-02-04 - JulindaStefa






 
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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback