Advertisement
anon93019381

Untitled

Mar 12th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.86 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.1
  16. if Iron_count <= 0:
  17.     total_count +0.8 * Iron_count
  18. if Iron_count == 0:
  19.     total_count + 0
  20. if Sheet_count <= 0:
  21.     total_count + (0.8 * Sheet_count)
  22. if Sheet_count == 0:
  23.     total_count + 0
  24. if Scrap_count <= 0:
  25.     total_count + (0.68 * Scrap_count)
  26. if Scrap_count == 0:
  27.     total_count + 0
  28. if Pot_count <= 0:
  29.     total_count + (0.6 * Pot_count)
  30. if Pot_count == 0:
  31.     total_count + 0
  32. if Metall_Scrap_count <= 0:
  33.     total_count + (0.6 * Metall_Scrap_count)
  34. if Metall_Scrap_count == 0:
  35.     total_count + 0
  36. if Piese_of_metall_count <= 0:
  37.     total_count + (0.6 * Piese_of_metall_count)
  38. if Piese_of_metall_count == 0:
  39.     total_count + 0
  40. if Stake_count <= 0:
  41.     total_count + (0.6 * Stake_count)
  42. if Stake_count == 0:
  43.     total_count + 0
  44. if Pipe_count <= 0:
  45.     total_count + (0.48 * Pipe_count)
  46. if Pipe_count == 0:
  47.     total_count + 0
  48. if Piese_of_pipe_count <= 0:
  49.     total_count + (0.168 * Piese_of_pipe_count)
  50. if Piese_of_pipe_count == 0:
  51.     total_count + 0
  52. if Electronic_junk_count <= 0:
  53.     total_count + (0.04 * Electronic_junk_count)
  54. if Electronic_junk_count == 0:
  55.     total_count + 0
  56. if Nails_count <= 0:
  57.     total_count + (0.04 * Nails_count)
  58. if Nails_count == 0:
  59.     total_count + 0
  60. if Spikes_count <= 0:
  61.     total_count +0.03*Spikes_count
  62. if Spikes_count == 0:
  63.     total_count + 0
  64. if Screw_count <= 0:
  65.     total_count+0.026*Screw_count
  66. if Screw_count == 0:
  67.     total_count+0
  68. if Pieses_of_iron_count <= 0:
  69.     total_count+0.12*Pieses_of_iron_count
  70. if Pieses_of_iron_count == 0:
  71.     total_count+0
  72. print("Всего КГ: ",total_count)
  73. print("Всего слитков: ",total_count/2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement