Editorial for Wesley's Anger Contest 1 Problem 1 - Simply a Simple Simplex Problem
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Subtask 1
The first subtask was meant to reward those who solved the problem by hand. When
Time Complexity:
Subtask 2
For the second subtask, it can be seen that in order to minimize the number of vertices, we want to create a graph where there is an edge between as many pairs of vertices as possible. It can be shown that a simple, undirected graph with
Time Complexity:
Subtask 3
For the third subtask, we can either binary search for the answer using the inequality from subtask 2, or we can make the observation that the solution is always one of long double
instead of double
to accurately perform floating point operations.
Time Complexity:
Comments