Advertisement
anon93019381

Untitled

Mar 12th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.19 KB | None | 0 0
  1. Iron_count = int(input('Введите количество руды: '))
  2. Sheet_count = int(input('Введите количество листов: '))
  3. Scrap_count = int(input('Введите количество мусора: '))
  4. Pot_count = int(input('Введите количество банок: '))
  5. Metall_Scrap_count = int(input('Введите количество металлического хлама: '))
  6. Piese_of_metall_count = int(input('Введите количество кусков металла: '))
  7. Stake_count = int(input('Введите количество железных колов: '))
  8. Pipe_count = int(input('Введите количество труб: '))
  9. Piese_of_pipe_count = int(input('Введите количество кусков трубы: '))
  10. Electronic_junk_count = int(input('Введите количество электронного мусора: '))
  11. Nails_count = int(input('Введите количество гвоздей: '))
  12. Spikes_count = int(input('Введите количество шипов: '))
  13. Screw_count = int(input('Введите количество болтов: '))
  14. Pieses_of_iron_count = int(input('Введите количество кусков железа: '))
  15. total_count = 0
  16. if Iron_count > 0:
  17.     total_count +=0.8*Iron_count
  18. if Sheet_count > 0:
  19.     total_count += 0.8*Sheet_count
  20. if Scrap_count > 0:
  21.     total_count += 0.68*Scrap_count
  22. if Pot_count > 0:
  23.     total_count += 0.6*Pot_count
  24. if Metall_Scrap_count > 0:
  25.     total_count +=0.6*Metall_Scrap_count
  26. if Piese_of_metall_count > 0:
  27.     total_count +=0.6*Piese_of_metall_count
  28. if Stake_count > 0:
  29.     total_count +=0.6*Stake_count
  30. if Pipe_count > 0:
  31.     total_count +=0.48*Pipe_count
  32. if Piese_of_pipe_count > 0:
  33.     total_count +=0.168*Piese_of_pipe_count
  34. if Electronic_junk_count> 0:
  35.     total_count +=0.04*Electronic_junk_count
  36. if Nails_count > 0:
  37.     total_count +=0.04*Nails_count
  38. if Spikes_count > 0:
  39.     total_count +=0.03*Spikes_count
  40. if Screw_count > 0:
  41.     total_count+=0.026*Screw_count
  42. if Pieses_of_iron_count > 0:
  43.     total_count+=0.12*Pieses_of_iron_count
  44. print("Всего КГ: ",total_count)
  45. print("Всего слитков: ",total_count/2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement