1:
n = int(input())
steps = 0
while (n <= 800):
n *= 3
steps += 1
print(n, steps)
2:
x, y = map(int, input().split())
sum = 0
for i in range(x, y + 1, 4):
sum += i
print(sum)
3:
l = []
for i in range(-5, 4):
l.append((i, 2*i**2+7*i+0.5))
for i in l:
print(i)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
1:
n = int(input())
steps = 0
while (n <= 800):
n *= 3
steps += 1
print(n, steps)
2:
x, y = map(int, input().split())
sum = 0
for i in range(x, y + 1, 4):
sum += i
print(sum)
3:
l = []
for i in range(-5, 4):
l.append((i, 2*i**2+7*i+0.5))
for i in l:
print(i)