We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
решение бота на Python
from typing import List, Dict from itertools import combinations as combi def solution(pairs: List[int], k: int) -> int: count = 0 bahan = pairs com = list(combi(bahan,2)) olah = list(set(com)) for x in olah: seli = x[0] - x[1] # print(f"{x[0]}-{x[1]} = {seli}, abs {abs(seli)}") if abs(seli) == k: count += 1 # print(com) # print(count) return count
ответ чувствителен к порядку - об этом в условиях ни слова
The text was updated successfully, but these errors were encountered:
12b608d
No branches or pull requests
решение бота на Python
ответ чувствителен к порядку - об этом в условиях ни слова
The text was updated successfully, but these errors were encountered: