1
0

[euler 102]

This commit is contained in:
2017-11-20 18:28:21 +01:00
parent 69e3f51730
commit a25b5b7662
4 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
Not much to say here, a bit of input parsing,
then looping through all lines and testing the triangles
with [this](http://blackpawn.com/texts/pointinpoly/default.html) basic algorithm.
Because the program is already pretty fast we don't spend much time optimizing it,
that means most variables have fixed grid values, even though I could optimize a few
to live only on the stack.