ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1777. Anindilyakwa

Small Hints
Posted by irinaguseva 25 Jul 2021 21:52
1) Try writing an algorithm for finding the minimum difference in a list first (list.sort() method may come in handy)

2) Think of how the usage of sets and lists may assist you in determining whether we have doublets in your list

3) Use counters for finding the number of iterations in your cycle

Enjoy :)

Edited by author 25.07.2021 21:52

Edited by author 25.07.2021 21:52