How do you find the interval to search next?
JP.
Sorry for confusing you,
I wrote that "inc = 1" means 1 degree ( PI/180 ), not 1.
for the interval, I choice a middle point, and add/sub a range to form the new one.
In the begining, mid = PI/4.0, range = PI/4.0, interval will be ( 0, PI/2.0 ...
Search found 75 matches
- Sat Nov 29, 2003 2:19 am
- Forum: Volume 101 (10100-10199)
- Topic: 10173 - Smallest Bounding Rectangle
- Replies: 18
- Views: 7293
- Tue Jul 01, 2003 5:30 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10508 - Word Morphing
- Replies: 35
- Views: 15531
- Tue Jul 01, 2003 3:03 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10508 - Word Morphing
- Replies: 35
- Views: 15531
- Fri Jun 27, 2003 4:06 am
- Forum: Volume 102 (10200-10299)
- Topic: 10299 - Relatives
- Replies: 57
- Views: 20742
- Thu Jun 26, 2003 4:11 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10299 - Relatives
- Replies: 57
- Views: 20742
- Thu Jun 19, 2003 1:01 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10508 - Word Morphing
- Replies: 35
- Views: 15531
- Wed Jun 18, 2003 6:29 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10508 - Word Morphing
- Replies: 35
- Views: 15531
Re: 10508-Word Morphing ,runtime error!
The description of this problem include: The number of words are unlimited! But I don't know how many words there are in one case at most.
One method, you can use malloc, because first line of each case will tell you how many words and how long of each word.
But, since the problem descript that ...
One method, you can use malloc, because first line of each case will tell you how many words and how long of each word.
But, since the problem descript that ...
- Tue Jun 10, 2003 3:07 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 42053
...
Maybe you can try this
Input
5 5
Output
5 divides 5!
Input
5 5
Output
5 divides 5!
- Sun Feb 09, 2003 8:50 am
- Forum: Volume 102 (10200-10299)
- Topic: 10299 - Relatives
- Replies: 57
- Views: 20742
...
987654321 = 3^2 x 17^2 x 379721
it has three prime factors 3, 17, 379721
your prime table only up to 32000.
in this case, you lost the last one prime 379721
and your answer become
987654321 * ( 1-1/3 ) * ( 1-1/17 ) = 619704672
and the correct answer is
987654321 * ( 1-1/3 ) * ( 1-1/17 ) * (1 ...
it has three prime factors 3, 17, 379721
your prime table only up to 32000.
in this case, you lost the last one prime 379721
and your answer become
987654321 * ( 1-1/3 ) * ( 1-1/17 ) = 619704672
and the correct answer is
987654321 * ( 1-1/3 ) * ( 1-1/17 ) * (1 ...
- Sun Nov 03, 2002 11:02 am
- Forum: Volume 100 (10000-10099)
- Topic: 10011 - Where Can You Hide?
- Replies: 58
- Views: 19141
- Fri Nov 01, 2002 10:11 am
- Forum: Volume 100 (10000-10099)
- Topic: 10084 - Hotter Colder
- Replies: 2
- Views: 2795
10084 - Hotter Colder
I just wonder that if 'Same' occurs ...how to express area ? 0.00 ?
and after 'Same' ... all cases should be 0.00 ... right ?
plz.. give me more test case, thx
and after 'Same' ... all cases should be 0.00 ... right ?
plz.. give me more test case, thx

- Thu Oct 31, 2002 8:45 am
- Forum: Volume 101 (10100-10199)
- Topic: 10173 - Smallest Bounding Rectangle
- Replies: 18
- Views: 7293
Re: thank you~~~
The largest rectangle is simply infinitely large.
I think your proposition need some more definitions.
Maybe you want to put the constraints on the rectangle that should
have at least a certain number of points on the boundary or something else...I don't know
hmm...only one constrain ... fit ...
I think your proposition need some more definitions.
Maybe you want to put the constraints on the rectangle that should
have at least a certain number of points on the boundary or something else...I don't know
hmm...only one constrain ... fit ...
- Mon Oct 28, 2002 7:41 am
- Forum: Volume 101 (10100-10199)
- Topic: 10173 - Smallest Bounding Rectangle
- Replies: 18
- Views: 7293
thank you~~~
thank Ivan Golubev and Adrian Kuegel...
I starts form theta = 0, inc = 1 to searching for the smallest rectangle.
Then decreasing inc to inc/10, searching in smaller interval...
repeat ...10 times ... WA ... 11 times ... AC :)
thank you all ....
and If I wanna search the "largest" rectangle ...
I starts form theta = 0, inc = 1 to searching for the smallest rectangle.
Then decreasing inc to inc/10, searching in smaller interval...
repeat ...10 times ... WA ... 11 times ... AC :)
thank you all ....
and If I wanna search the "largest" rectangle ...
- Thu Oct 24, 2002 5:39 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10173 - Smallest Bounding Rectangle
- Replies: 18
- Views: 7293
- Thu Oct 24, 2002 9:17 am
- Forum: Volume 101 (10100-10199)
- Topic: 10173 - Smallest Bounding Rectangle
- Replies: 18
- Views: 7293