Программа на Python:
x = 7 * 512**120 - 6 * 64**100 + 8**210 - 255
s = 0
while x:
if x % 8 == 0: s += 1
x //= 8
print(s)
Ответ: 151
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа на Python:
x = 7 * 512**120 - 6 * 64**100 + 8**210 - 255
s = 0
while x:
if x % 8 == 0: s += 1
x //= 8
print(s)
Ответ: 151