본문 바로가기

분류 전체보기

(67)
Making high resolution performance counter To read the resolution time, you must use the Performance Counter. For GetTickCount () function has the ease of use. Best used when the time measurement is not important. However, the return value of GetTickCount () function ms (mili second) units, but the actual resolution is not a 1ms increments.  You can slightly differ. The following is a function of the source to read the current count time..
5. Project Euler #5 : The smallest number that can be divided by numbers below 20. The difficulty of the problem, I feel that a little bit goes high. This is a problem that can exert sufficient efficiency. The algorithm is easy,As will be easily solved sequentially from 1 to find the first number evenly divisible by the number 1 through 20 for all you can, then you need to check on you when so many do. Here, find the greatest common divisor by the Euclidean method, I think the..
4. Project Euler #4 : Largest palindrome product. Simply think this problem, Determine multiplied result of two three-digit numbers a and b is palindrome number and take largest palindrome number. However, In order to get largest palindrome number, we have to multiply all three-digit numbers each, and the complexitcity can be 100 million order. So I implemented the algorithm, 1) Generate 6 digit palindron numbers ordered from large to small. (u..
3. Project Euler #3 : Find the biggest prime factor. This problem is making a program to find the largest prime factor for a given number. In fact, no choice but to use the body of elastomer Ness Te find the largest prime factor. It is one that is required is to continue to divide a given number. Is beyond the scope of this program as well. The general form for a small number of bit to speed, all except 2 is an odd prime number. Is an odd prime fa..
[C/C++] Project Euler #2 : Sum of even terms of Fibonacci(Dynamic Programming) Looking learn the C / C ++ language, just once, if it is to try the program, I would be the Fibonacci sequence. Comes on, but in places with a lot of Fibonacci recursion, is also often used as an example, the dynamic program is needed.The Fibonacci sequence is required from the quiz form of increased geotinde a pair of rabbit populations. You can just adapt to growth in the same E. coli as a rab..
[C/C++] Project Euler #1 Add 3 or 5 multipliers. From the University of challenges, one comes from a lot of problems that create a multi-add programs to 100. Most results are still seeking answers using the for loop. (The problem, of course, questions shall intention is to see if you can well use a for loop to assume Maybe.)But that, from 1 to n, if you know the most basic formula for the sum up, do not turn the bother for loop, can be calcula..
Project Euler #0 : start up. I'm not native in English.  If you find wrong english, please add comments for me.  Project Euler is today's programmer (which is a little late. Oh, I do not know) In popular with, trying to solve Project Euler little ball in a different light. Already the problem by placing the hundreds of dogs, this series, I'm not sure how long it will take is indeed.First of all, the most important thing I t..

반응형