Skip to main content
13 events
when toggle format what by license comment
Nov 16, 2022 at 17:32 comment added user108721 The problem was the stupid compiler that insists the -l options come after the file name but in 2022 still doesn't give you a sensible warning message if you don't do that.
Nov 16, 2022 at 17:24 history edited c-- CC BY-SA 4.0
jic
Nov 14, 2022 at 15:58 history edited c-- CC BY-SA 4.0
improvement?
Nov 14, 2022 at 14:52 comment added jdt I think it's more likely the temperature of the CPU. On my laptop, it starts at 120% cpu utilization but drops to about 80% after a while. Turning down the AC or putting your computer in a freezer might make the biggest difference :-)
Nov 14, 2022 at 14:35 comment added c-- @jdt not really, I just got 593 with yours vs 588 with mine in 5 minutes. I think it could be that mp::pow is not a good way of generating ones or the fact that I'm searching for the non-repdigit from the end (which could affect the rate at which they're found if for these values of n they're easier to find from the start).
Nov 14, 2022 at 13:52 comment added jdt MSVC 2019 does support it with /std:c++latest. My laptop is pretty much useless for benchmarking, do you get a noticeable improvement with your code vs mine?
Nov 14, 2022 at 13:37 comment added c-- yeah, it's too bad compilers don't support std::print yet, but {fmt} is really good.
Nov 14, 2022 at 13:00 history edited c-- CC BY-SA 4.0
replace 10 -> ten
Nov 14, 2022 at 3:20 comment added jdt i love std::format. The whole std::cout thing was crappy from the start.
Nov 14, 2022 at 2:45 history edited c-- CC BY-SA 4.0
tidying
Nov 14, 2022 at 1:43 history edited c-- CC BY-SA 4.0
renaming
Nov 14, 2022 at 1:13 history edited c-- CC BY-SA 4.0
specify compiler flags
Nov 14, 2022 at 0:50 history answered c-- CC BY-SA 4.0