Răspuns :
gaini + rate + curci = 80
43 nu sunt rate => gaini + curci = 43, deci rate = 80 - 43 = 37
38 nu sunt gaini => rate + curci = 38, deci gaini = 80 - 38 = 42
curci = 80 - 37 (rate) - 42 (gaini)
curci = 1
Verifica daca nu crezi
42 + 37 + 1 = 80
42 + 1 = 43
37 + 1 = 38
43 nu sunt rate => gaini + curci = 43, deci rate = 80 - 43 = 37
38 nu sunt gaini => rate + curci = 38, deci gaini = 80 - 38 = 42
curci = 80 - 37 (rate) - 42 (gaini)
curci = 1
Verifica daca nu crezi
42 + 37 + 1 = 80
42 + 1 = 43
37 + 1 = 38
g+r+c=80
g+c=43
r+c=38
g+38=80
g=80 - 38
g=42(gaini)
r+43=80
r=80-43
r=37(rate)
37+c=38
c=38-37
c=1(o curca)
Verificarea 42+37+1=80
g+c=43
r+c=38
g+38=80
g=80 - 38
g=42(gaini)
r+43=80
r=80-43
r=37(rate)
37+c=38
c=38-37
c=1(o curca)
Verificarea 42+37+1=80