finally, i got acc... the problem is not the precision error...
if distance=sqrt(a*t*t+b*t+c) a.b.c as above
the minimum distance should be sqrt( a(t+b/2a)^2 + ...)
then we consider if a=0 or not,
if a!=0 then choose t=-b/2a
else a==0, it means v1_x==v2_x and v1_y==v2_y and v1_z==v2_z, so b==0 ...
Search found 9 matches
- Mon Oct 02, 2006 8:22 am
- Forum: Volume 107 (10700-10799)
- Topic: 10794 - The Deadly Olympic Returns!!!
- Replies: 14
- Views: 15339
- Mon Aug 21, 2006 8:23 am
- Forum: Volume 107 (10700-10799)
- Topic: 10726 - Coco Monkey
- Replies: 9
- Views: 5914
- Thu Aug 17, 2006 6:35 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10794 - The Deadly Olympic Returns!!!
- Replies: 14
- Views: 15339
- Thu Aug 17, 2006 7:23 am
- Forum: Volume 107 (10700-10799)
- Topic: 10794 - The Deadly Olympic Returns!!!
- Replies: 14
- Views: 15339
- Wed Aug 16, 2006 6:47 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10794 - The Deadly Olympic Returns!!!
- Replies: 14
- Views: 15339
- Wed Jul 05, 2006 1:54 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10042 - Smith Numbers
- Replies: 75
- Views: 33538
- Wed Jul 05, 2006 11:16 am
- Forum: Volume 100 (10000-10099)
- Topic: 10087 - The Tajmahal of ++Y2k
- Replies: 3
- Views: 2669
- Tue Jul 04, 2006 11:06 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10042 - Smith Numbers
- Replies: 75
- Views: 33538
- Tue Jul 04, 2006 11:22 am
- Forum: Volume 100 (10000-10099)
- Topic: 10042 - Smith Numbers
- Replies: 75
- Views: 33538
about SIGSEGV
hi,
in 10042 smith numbers, i try the all input from other topic and get correct answer use gcc.
but when i submit my code, it gets signal 11 (SIGSEGV). Meaning:
Invalid memory reference
but i don't know in what condition could make this mistake
is there anyone can help me? thx.
in 10042 smith numbers, i try the all input from other topic and get correct answer use gcc.
but when i submit my code, it gets signal 11 (SIGSEGV). Meaning:
Invalid memory reference
but i don't know in what condition could make this mistake
is there anyone can help me? thx.