For some weird reason my code runs faster with linear search compared to binary search.
sort - binary search 0.156s
sort - linear search 0.144s
linear search 0.152s
Search found 3 matches
- Sat Sep 08, 2012 9:33 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10150 - Doublets
- Replies: 46
- Views: 45913
- Thu Sep 06, 2012 6:04 am
- Forum: Volume 101 (10100-10199)
- Topic: 10188 - Automated Judge Script
- Replies: 58
- Views: 37355
Re: 10188 - Automated Judge Script
My experience:
when you catenate the strings you have to remember to add the '\n'
when you catenate the strings you have to remember to add the '\n'
- Sat Aug 04, 2012 9:59 am
- Forum: Volume 100 (10000-10099)
- Topic: 10044 - Erdos Numbers
- Replies: 102
- Views: 55231
Re: 10044 - Erdos Numbers
Well, I think the best way to read input is to find ".," and ".:" instead of "," and ":" .
I am also sure that there is no extra blank spaces in each line of input. (Mine got AC)
I am also sure that there is no extra blank spaces in each line of input. (Mine got AC)