Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubysheva polina #135

Open
wants to merge 8 commits into
base: Kubysheva_Polina
Choose a base branch
from

Conversation

pkubysheva
Copy link

No description provided.

эту задачу мы разбирали вместе с вами на паре(то,что добавила сама, закомментировала)
эти задачи уже загружала месяца 2 назад
Вы ,наверное, их пропустили, поэтому вот)
эти задачи уже загружала когда-то
Вы их наверное пропустили, поэтому вот)
def getNod(v, l, r, it, ql, qr): #задаем переменные в функции
if ql <= l and qr >= r: # если
return it[v]
if ql >= r or qr <= l: # если слева больше, чем справа или наоборот, то возвращаем 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

просто огонь, а не комментарий)

result = [] #создаём пустой массив
input_ = input().split() # ввод в консоли
n, m = int(input_[0]), int(input_[1])
for i in range(m): # генерируем числа
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Какие же мы числа генерируем?

@@ -0,0 +1,66 @@
# этот код с вами писали
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Куда не посмотришь, везде все писали со мной)

if heap:
return shift_down(0, heap), ind
else:
return 0, ind
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это тоже со мной писали?

if type(i) == tuple:
print(*i)
else:
print(i)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И это писали?) код с 54-63

print(*i)
else:
print(i)
print(*heap)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И тут все со мной писали... какая я молодец)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants