Relative Content

Tag Archive for c++17

how to install c++ 17 and mingw in sublime text

I’m using Sublime Text as my IDE, anyone can tell me how to install c++ 17 to programm pls!
IN sublime text’s package just support c++ 11, i can’t find any version of c++ in sublime text
help me !!!
Oh, 1 more thing, what is this?
C:WindowsSystem32>g++ –version
g++ (Rev3, Built by MSYS2 project) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
i use c++ builder minghang-yang so i don’t remember did i install mingw.

PixelSearch (Multiple same Color issue)

Good day!
I hope you can help me out on this one.
I’m currently having some trouble with the PixelSearch.
Whenever there is a same multiple color shown, the mouse will only be stuck at the first color and will not move to the next one right after.

return maximum height of the triangle that can be achieved

You are given two integers red and blue representing the count of red and blue colored balls. You have to arrange these balls to form a triangle such that the 1st row will have 1 ball, the 2nd row will have 2 balls, the 3rd row will have 3 balls, and so on.

Digits of pin-th (improved time complexity)

I’ve optimized some of the source code for someone to find the nth digit of the pie, but the problem is that n is possible up to a million, and this operation has to be completed in 1 second. I’ve already optimized it, but it’s still not enough. Maybe the use of the BBP algorithm is wrong. How do I optimize the code to make the overall time complexity O(nlogn)?