Hi Little Joey.
I admit my pseudo code is a bit messy. Sorry about that :/
Here's temporarily my source code (I'll remove it as soon as somebody will answer). It might have a few out-of-bounds troubles, but nothing extremly important.
I'm surprised, because I thought one could use MAXCOST+1 ...
Search found 145 matches
- Wed Jul 21, 2004 12:36 pm
- Forum: Algorithms
- Topic: Stuck on certain DP problems.
- Replies: 15
- Views: 7838
- Wed Jul 21, 2004 10:06 am
- Forum: Algorithms
- Topic: Stuck on certain DP problems.
- Replies: 15
- Views: 7838
Pb 562, other algorithm, but ...
Good morning everybody
I've solved (AC in 1.4 sec) 562 (thanks little joey ;) ) with another algorithm, but there is one thing that I don't understand :
int MAX_SUM = 500*100
bool possible_differenceMAX_SUM+1]
possible_difference [first coin]= 1; (all other 0)
for each coin from second to last ...
I've solved (AC in 1.4 sec) 562 (thanks little joey ;) ) with another algorithm, but there is one thing that I don't understand :
int MAX_SUM = 500*100
bool possible_differenceMAX_SUM+1]
possible_difference [first coin]= 1; (all other 0)
for each coin from second to last ...
- Tue Jul 20, 2004 11:49 pm
- Forum: Volume 2 (200-299)
- Topic: 256 - Quirksome Squares
- Replies: 30
- Views: 8690
- Tue Jul 20, 2004 11:48 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10040 - Ouroboros Snake
- Replies: 20
- Views: 6792
- Fri Jul 16, 2004 12:17 pm
- Forum: Volume 2 (200-299)
- Topic: 256 - Quirksome Squares
- Replies: 30
- Views: 8690
Other solution than precalc ?
Hi everybody
Is there another solution than this too simple precalcuation ?
Could anybody help me to find a more interesting answer ? Is there one ?
Thank you !
Is there another solution than this too simple precalcuation ?
Could anybody help me to find a more interesting answer ? Is there one ?
Thank you !
- Fri Jul 16, 2004 10:09 am
- Forum: Java
- Topic: Does Any one know that Java support BigInteger Class ?
- Replies: 6
- Views: 4165
No, it's only this judge's limitations. In regionals, you're allowed to use all this and more. (As far as I know anyhow..)
Gee ! I'm surprised ! BigInteteger is extremely powerful : it now includes primality testing (with serveral different methods), primal number generation, fast exponentiation ...
Gee ! I'm surprised ! BigInteteger is extremely powerful : it now includes primality testing (with serveral different methods), primal number generation, fast exponentiation ...
- Thu Jul 15, 2004 12:06 pm
- Forum: Java
- Topic: To the administrator - Please support math.BigInteger
- Replies: 1
- Views: 2464
- Thu Jul 15, 2004 12:05 pm
- Forum: Java
- Topic: JAVA-Difficulties We Face
- Replies: 31
- Views: 31394
imo, BigInteger is TOO MUCH to be allowed on contest
Yeah, well I got screwed by the actual ACM regional competition judge.
(...)
So yeah, it's not just the UVA Judge that sucks. Always make sure to wrap your code so that it times out if there's an error or something.
Thank you for this info that I'd been looking for a while : Java in regionals ...
(...)
So yeah, it's not just the UVA Judge that sucks. Always make sure to wrap your code so that it times out if there's an error or something.
Thank you for this info that I'd been looking for a while : Java in regionals ...
- Thu Jul 15, 2004 11:48 am
- Forum: Other words
- Topic: Avatar Problem
- Replies: 1
- Views: 1260
- Thu Jul 15, 2004 11:47 am
- Forum: Java
- Topic: Does Any one know that Java support BigInteger Class ?
- Replies: 6
- Views: 4165
- Thu Jul 15, 2004 9:35 am
- Forum: Volume 100 (10000-10099)
- Topic: 10040 - Ouroboros Snake
- Replies: 20
- Views: 6792
- Thu Jul 15, 2004 9:32 am
- Forum: Volume 100 (10000-10099)
- Topic: 10007 - Count the Trees
- Replies: 39
- Views: 10989
- Mon Jul 12, 2004 1:12 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10007 - Count the Trees
- Replies: 39
- Views: 10989
- Sun Jul 11, 2004 6:13 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10040 - Ouroboros Snake
- Replies: 20
- Views: 6792
- Sun Jul 11, 2004 6:08 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10040 - Ouroboros Snake
- Replies: 20
- Views: 6792