#ternary-search
CF 1387A - Graph
CF 1387A - Graph Rating: 2100 Tags: *special, binary search, dfs and similar, dp, math, ternary search Solve time: 6m 59s Verified: no Solution Problem Understanding We are given an undirected graph where every edge enforces a linear constraint between its endpoints. Each vertex must be assigned a real value, and every edge says exactly what the sum of its two endpoint values must be. Black edges force a sum...
CF 1599C - Bubble Strike
CF 1599C - Bubble Strike Rating: 2000 Tags: combinatorics, math, probabilities, ternary search Solve time: 1m 44s Verified: no Solution Problem Understanding We are asked to determine how many maps Johnny must study to ensure that the probability he ends up playing on a studied map is at least $P$. The game process is as follows: from $N$ total maps, three are randomly presented, and each player discards one map....
CF 1662K - Pandemic Restrictions
CF 1662K - Pandemic Restrictions Rating: - Tags: geometry, ternary search Solve time: 2m 11s Verified: no Solution Problem Understanding We are tasked with finding a residence point in a 2D plane from which you can meet any pair of three friends such that the sum of distances from each attendee to the meeting point does not exceed a certain threshold $r$. The friends live at three distinct coordinates, and...