|
|
back to boardHow to solve this problem? Could anybody tell me the detail? Just check about 10^6 points from there square. (-) Re: How to solve this problem? Simplest solution: O(1000^2) works 0.39 seconds. It also works at O(100^2) Re: Just check about 10^6 points from there square. (-) Yeah,but how to present a circle? Re: Just check about 10^6 points from there square. (-) My program: count = 0; for X from 0.000 to 1.000 for Y from 0.000 to 1.000 if Point(X,Y) within some cirle then count := count+1 write(count/1000000*100); Re: Just check about 10^6 points from there square. (-) Thank you. Re: How to solve this problem? Hello! Why your name is Hybrid Theory? It's one of Linkin Park's albums(2000) Do you like Linkin Park? If you like it, then write me: \\tair_a@mail.ru \\fred007@mail.ru |
|
|