Search found 4 matches

Sun Aug 18, 2002 3:27 pm
Forum: Volume 103 (10300-10399)
Topic: 10339 - Watching Watches
Replies: 10
Views: 3120
It can be done also without floats. Let x be the difference between the two watches after one day (in seconds) x = |a-b| So the difference between two watches after one second (y) will be y = x / 86400 Both watches will show the same time after the difference between their times will be 12h, that is...
Sat Aug 17, 2002 7:54 pm
Forum: Volume 103 (10300-10399)
Topic: 10310 - Dog and Gopher
Replies: 47
Views: 17454
I haven't check if 'long' is enough, but I've used instead 'long long' (it is 64bit integer, 2x bigger than normal long which is 32bit), and I got AC. Some parts of my program: [c] long long dog_x, dog_y; long long gopher_x, gopher_y; int can_escape( long long x, long long y) { long long dog_l, goph...
Tue Aug 13, 2002 7:48 pm
Forum: Volume 103 (10300-10399)
Topic: 10301 - Rings and Glue
Replies: 50
Views: 16385
I haven't analyzed code too hard, but it is possible that
you haven't consider two equal circles, one over second.

Hauser
Tue Aug 13, 2002 7:41 pm
Forum: Volume 103 (10300-10399)
Topic: 10310 - Dog and Gopher
Replies: 47
Views: 17454
I've used long longs, not doubles, and I've got AC.
(You can simply operate on numbers multiplied by 1000).
Also, you don't have to use sqrt function, or something. You can simply
compare squares of numbers.

Hauser