polyglot-euler icon indicating copy to clipboard operation
polyglot-euler copied to clipboard

Update p001.cpp

Open tigertv opened this issue 5 years ago • 0 comments

Hi!

Make it faster.

How the solution works

No loops. It uses sum of arithmetic progression.

Performance

https://tio.run/ gives that

Real time: 0.340 s
User time: 0.271 s
Sys. time: 0.061 s
CPU share: 97.96 %
Exit code: 0

tigertv avatar Feb 12 '20 15:02 tigertv