Masala #E2CJBUBIFA
Kubik tenglama #1
Javohir kub tenglama ishlayapti lekin javobi xato chiqyapti. Javohir sizdan yordam so'rayapti unga yordam berib yuboring.
Masala sharti quydagicha: Kubik tenglamani ifodalovchi A, B, C, D va E 5 ta butun son berilgan bo'lsa, bu tenglamaning integral yechimini toping. Agar integral yechim mavjud bo'lmasa, "Error" ni so'zini chiqaring..
Bitta qatorda beshta butun son 0 ≤ A,B,C,D,E≤ 106
Chiqish faylida yagona son, integral yechimni chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
1 0 0 0 64 |
4 |
2 |
5 1 2 3 6 |
Error |