Thank you for participating in our contest! We hope you enjoyed it.

**Hint 1**

**Hint 2**

**Solution**

**Implementation (C++)**

**Implementation (Java)**

**Implementation (Python)**

**Video Editorial**

**Hint**

**Hint Solution**

**Solution**

**Implementation (C++)**

**Implementation (Java)**

**Implementation (Python)**

**Video Editorial**

**Hint**

**Solution**

**Implementation (C++)**

**Implementation (Java)**

**Implementation (Python)**

**Video Editorial**

**Hint**

**Solution**

**Implementation (C++)**

**Implementation (Java)**

**Implementation (Python)**

**Video Editorial**

**Hint**

**Hint 2**

**Hint 3**

**Solution**

**Implementation (C++)**

**Implementation (Java)**

**Implementation (Python)**

**Hint 1**

**Hint 2**

**Hint 3**

**Solution**

**Implementation (C++)**

**Implementation (Java)**

**Implementation (Python)**

**Author Notes**