karen_constantine

Untitled

Nov 27th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. from math import *
  2. '''(0)1
  3. (1)2
  4. (2)4
  5. (3)8
  6. (4)16
  7. (5)32
  8. (6)64
  9. (7)128
  10. (8)256
  11. (9)512
  12. (10)1024
  13. (11)2048
  14. (12)4096'''
  15. pow_1 = int(input())
  16. count_simbol = int(input())
  17. count_user = int(input())
  18. password_1 = pow_1 * count_simbol
  19. round_password = ceil(password_1/8)
  20. nnn = round_password * count_user# плюсуем, если есть доп информация к round rassword
  21. print(nnn/1024) #в килобайтах
  22.  
  23. #для хранения дополнительных сведений
  24. from math import *
  25. '''(0)1
  26. (1)2
  27. (2)4
  28. (3)8
  29. (4)16
  30. (5)32
  31. (6)64
  32. (7)128
  33. (8)256
  34. (9)512
  35. (10)1024
  36. (11)2048
  37. (12)4096'''
  38. pow_1 = int(input())
  39. count_simbol = int(input())
  40. count_user = int(input())
  41. all_data = int(input())
  42. password_1 = pow_1 * count_simbol
  43. round_password = ceil(password_1/8)
  44. print(all_data / count_user - round_password)
  45.  
  46. from math import *
  47. '''(0)1
  48. (1)2
  49. (2)4
  50. (3)8
  51. (4)16
  52. (5)32
  53. (6)64
  54. (7)128
  55. (8)256
  56. (9)512
  57. (10)1024
  58. (11)2048
  59. (12)4096'''
  60. pow_1 = int(input())
  61. count_simbol = int(input())
  62. pow_year = int(input())
  63. pow_month = int(input())
  64. inform = pow_1 * count_simbol + pow_year + pow_month
  65. print(ceil(inform/8))
  66.  
  67. from math import *
  68. '''(0)1
  69. (1)2
  70. (2)4
  71. (3)8
  72. (4)16
  73. (5)32
  74. (6)64
  75. (7)128
  76. (8)256
  77. (9)512
  78. (10)1024
  79. (11)2048
  80. (12)4096'''
  81. pow_1 = int(input())
  82. pow_2 = int(input())
  83. a = int(input())
  84. b = int(input())
  85. ident = int(input())
  86. simbol = pow_1 * a + pow_2 * b
  87. bait = ceil(simbol / 8)
  88. print(bait * ident)
  89.  
  90. from math import*
  91. alf = int(input())
  92. lk = int(input())
  93. storage = alf * lk
  94. tsr = ceil(storage/8)
  95. nom_p = int(input())
  96. propysk = int(input())
  97. print(propysk - (tsr + nom_p))
  98.  
  99. from math import*
  100. pow = int(input())
  101. simbol = int(input())
  102. alldata = int(input())
  103. bait = ceil(pow * simbol / 8) + 2 #если больше 256 , то ставим 2, если меньше - 1
  104. print(alldata - bait)
Advertisement
Add Comment
Please, Sign In to add comment