Very Suspicious Codeforces Solution | Codeforces Problem Solution 2022
Sehr Sus is an infinite hexagonal grid as pictured below, controlled by MennaFadali, ZerooCool and Hosssam.
They love equilateral triangles and want to create equilateral triangles on the grid by adding some straight lines. The triangles must all be empty from the inside (in other words, no straight line or hexagon edge should pass through any of the triangles).
Prof. Slim Codeforces Solution | Codeforces Problem Solution 2022
Dorms War Codeforces Solution | Codeforces Problem Solution 2022
Where is the Pizza? Codeforces Solution | Codeforces Problem Solution 2022
Very Suspicious Codeforces Solution | Codeforces Problem Solution 2022
Hemose on the Tree Codeforces Solution | Codeforces Problem Solution 2022
Jee, You See? Codeforces Solution | Codeforces Problem Solution 2022
You are allowed to add straight lines parallel to the edges of the hexagons. Given , what is the minimum number of lines you need to add to create at least equilateral triangles as described?
The first line contains a single integer () — the number of test cases. Then test cases follow.
Each test case contains a single integer () — the required number of equilateral triangles.
For each test case, print the minimum number of lines needed to have or more equilateral triangles.
Join Now for Solution:-
No comments:
Post a Comment