Search found 3 matches
- Fri May 05, 2006 12:13 am
- Forum: Volume 103 (10300-10399)
- Topic: 10303 - How Many Trees?
- Replies: 19
- Views: 4843
10303 How can I make is faster
It looks like a straightforward question. I used the formula of Catalan numbers and the C "bignum" routines. But I kept getting TLE. Is there any trick to improve the running time? BTW, which is more costly, bignum multiplication or bignum division?
- Sun May 29, 2005 10:33 pm
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51317
105 Runtime error
I use sweepline algorithm to solve this question. It yields right result on sample test data, but got "Invalid Memory Reference" after submitted. Could anybody help me to find out what's wrong or provide me some longer test set? Thanks in advance. :D
#include <iostream>
#include <vector>
#include ...
#include <iostream>
#include <vector>
#include ...
- Sat May 28, 2005 8:26 am
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 37233
shortest or longest path?
I still don't understand why F-W algorithm can be used here - to maximize the profit it sounds like a longest path problem.