FrankKair / polyglot-euler

📜 Project Euler solutions in various programming languages
MIT License
74 stars 14 forks source link

C++ 015 #49

Closed FrankKair closed 6 years ago

FrankKair commented 6 years ago

How the solution works

Basically all these languages call a combination function to output the desired number of routes. Note: Combination is also known as n choose k.

Performance

C++

Real time: 0.395 s
User time: 0.328 s
Sys. time: 0.058 s
CPU share: 97.80 %