Kompozicija funkcija
CodeChefOpen on judge ↗
Istraživač u svom novom naučnom radu ima potrebu izračunati, za ulazni parametar $x$, prosječnu vrijednost svih mogućih kompozicija ($pvk$) funkcija opisanih u nastavku. $g1(x)= sqrt(abs(2 * x + 1))$ $g2(x)= (x - 1)*(x + 3)$ $g3(x)= sqrt(abs(3 * x + 2)) $ $f1(x) = 2 * x$ $f2(x) = 7 * (x - 1) $ $f3(x)= (x / 2) + sqrt(abs(x))$ $f4(x)= cos(x / 5)$ $f5(x)= 5 * x - 2$
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start