Search found 4 matches
- Sun Aug 18, 2002 3:27 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10339 - Watching Watches
- Replies: 10
- Views: 3412
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: 18647
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: 17508
- Tue Aug 13, 2002 7:41 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10310 - Dog and Gopher
- Replies: 47
- Views: 18647