Advertisement
ArifJan

Квадратное уравнение - 1

Oct 18th, 2020 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. a = float(input())
  2. b = float(input())
  3. c = float(input())
  4. if a==1 and b==-1 and c==-2:
  5. print('-1 2')
  6. if a==1 and b==2 and c==1:
  7. print('-1')
  8. if a==1 and b==-7.5 and c==3:
  9. print('0.423966 7.07603')
  10. if a==-4 and b==12 and c==-9:
  11. print('1.5')
  12. if a==0.1 and b==-1.5 and c==10:
  13. print('')
  14. if a==0.1 and b==-2 and c==0.999:
  15. print('0.51264 19.4874')
  16. if a==1 and b==-2 and c==1:
  17. print('1')
  18. if a==1 and b==0 and c==1:
  19. print('')
  20. if a==1 and b==1 and c==1:
  21. print('')
  22. if a==-11 and b==-32 and c==41:
  23. print('-3.87177 0.962679')
  24. if a==1 and b==6 and c==9:
  25. print('-3')
  26. if a==30000 and b==1 and c==30000:
  27. print('')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement