Hi!
Some time ago I've solved problem 10104 (Euclid Problem) by using Euclid's Extended Algorithm. The thing is that I didn't even considered the additional restrictions (|x|+|y| = minimum, x<= y if there's a tie). Recently I re-read the problem and come to wonder if the algorithm always gives a ...
Search found 38 matches
- Sat Jul 01, 2006 6:12 am
- Forum: Algorithms
- Topic: Eulcid Problem
- Replies: 0
- Views: 1632
- Sun Jun 11, 2006 9:14 pm
- Forum: C
- Topic: floats to integers
- Replies: 3
- Views: 5564
- Sun Jun 11, 2006 6:40 pm
- Forum: C
- Topic: floats to integers
- Replies: 3
- Views: 5564
floats to integers
Hi!
It seems that the easiest way to change from floats to ints is by casting, but this may lead to errors. In Pascal I use round, but C lacks of a similar function. I'm currently using this function but I want to know if there's a better way.
long float_to_int(double fX) {
return((fX -((long ...
It seems that the easiest way to change from floats to ints is by casting, but this may lead to errors. In Pascal I use round, but C lacks of a similar function. I'm currently using this function but I want to know if there's a better way.
long float_to_int(double fX) {
return((fX -((long ...
- Tue May 16, 2006 5:37 pm
- Forum: Algorithms
- Topic: help with divide & conquer problem
- Replies: 3
- Views: 2144
- Thu May 04, 2006 6:34 am
- Forum: Algorithms
- Topic: Topics for IOI/ICPC training
- Replies: 3
- Views: 2359
- Wed May 03, 2006 6:24 am
- Forum: Algorithms
- Topic: Topics for IOI/ICPC training
- Replies: 3
- Views: 2359
Topics for IOI/ICPC training
Hi!
Which are good topics when training for IOI and ICPC? What topics might differ when training for each one? What "strategy" might differ when training for each one?
Also, any good problem(s) for divide-and-conquer? (that don't use a common algorithm, such as binary search or convex hull ...
Which are good topics when training for IOI and ICPC? What topics might differ when training for each one? What "strategy" might differ when training for each one?
Also, any good problem(s) for divide-and-conquer? (that don't use a common algorithm, such as binary search or convex hull ...
- Tue Oct 25, 2005 3:45 am
- Forum: Volume 109 (10900-10999)
- Topic: 10927 - Bright Lights
- Replies: 26
- Views: 19006
- Sun Oct 23, 2005 7:51 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10927 - Bright Lights
- Replies: 26
- Views: 19006
- Sun Oct 23, 2005 7:14 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10933 - Volleyball
- Replies: 15
- Views: 8323
- Mon Jun 13, 2005 3:08 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10107 - What is the Median?
- Replies: 74
- Views: 31458
Thanks!
It's wierd to get an answer after almost two years! Anyway, very good answer. Thanks!
PS: I think you can change your readln(s) for only readln and it would still work (and you wouldn't need the string).
PS: I think you can change your readln(s) for only readln and it would still work (and you wouldn't need the string).
- Sat Oct 23, 2004 5:43 am
- Forum: Volume 104 (10400-10499)
- Topic: 10431 - Normal Distribution
- Replies: 13
- Views: 4636
- Tue Mar 09, 2004 4:59 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10000 - Longest Paths
- Replies: 160
- Views: 56559
- Tue Mar 02, 2004 10:17 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10000 - Longest Paths
- Replies: 160
- Views: 56559
- Sat Jan 24, 2004 4:32 am
- Forum: Volume 6 (600-699)
- Topic: 686 - Goldbach's Conjecture (II)
- Replies: 41
- Views: 27640
- Thu Jan 22, 2004 2:52 am
- Forum: Volume 6 (600-699)
- Topic: 686 - Goldbach's Conjecture (II)
- Replies: 41
- Views: 27640