[Community Puzzle] Number of triangles enclosing X - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @nguyen.lam,validated by @JeZzElLutin,@kayou and @Dr_Meyss.
If you have any issues, feel free to ping them.

Part of your code can be reused between this puzzle and Triangle toggle puzzle.

The Test 9 generates an extra space character after the coordinates and uses non integers for the first time…

Which line(s) in the input are you talking about?

Also, non-integer coordinates have been introduced in Tests 7 and 8.

I do notice that there are extra space characters in the input in Test 8, and I’ll update that test to remove those.