Search found 67 matches
- Mon Aug 02, 2004 7:49 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10465 - Homer Simpson
- Replies: 75
- Views: 32429
gcd(a,b)|c means c can be divided by gcd(a,b) maybe the symbol '|' isn't quite common in your country. Well, maybe the method I mentioned before doesn't fit your request. You want do that by DP. If I were you, I'll do that by this. Now I read a, b, and t. a represented the needed time1, and b ... t...
- Sun Aug 01, 2004 4:31 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10297 - Beavergnaw
- Replies: 13
- Views: 8750
- Sun Aug 01, 2004 4:23 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10465 - Homer Simpson
- Replies: 75
- Views: 32429
The problem you request is ax+by=c find maximum x+y if existed otherwise decrease the c There is a well-known formula to examine the possiblity of the statement. That is wheather gcd(a,b) | c. If not don't waste any time to find the maximum x+y, otherwise try it. The formula work at the x and y are...
- Sun Aug 01, 2004 3:57 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10671 - Grid Speed
- Replies: 2
- Views: 2059
10671 - Grid Speed
I think it is an ordinary dp problem, pass it without further doubt. What I'd like to ask here is how to reduce the memory and time as low as the top of the rankist. Before posting, I tried to find somthing out. Memory. 1. reduce the 2-dim mem to 1-dim mem. (mine: done) 2. Try linked list instead o...
- Thu Jan 01, 2004 2:59 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10590 - Boxes of Chocolates Again
- Replies: 20
- Views: 10083
- Thu Jan 01, 2004 8:02 am
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8695
To windows 2k : Your output is right. Try more samples. 5 x..xx xxxxx xxx.. xx.xx xx.xx 10 x..xxxxxxx .x.x.xxx.x xxxxx..x.x xxx.x.xx.. xxx.x.x.xx xxxx..xx.x x.xxxxxxxx xxx..xxxxx xxx.x..xx. .xx.xxxxx. 15 xxxx..x.xxx.x.x xx.xx..x..xxx.x x..x.x.x.xx.xxx .x.xxxxxx.xx..x xxxxxx.xx.xxx.x .x.x.....xxx... ...
- Thu Jan 01, 2004 7:56 am
- Forum: Volume 105 (10500-10599)
- Topic: 10590 - Boxes of Chocolates Again
- Replies: 20
- Views: 10083
- Sun Dec 28, 2003 5:57 am
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8695
- Sun Dec 28, 2003 5:13 am
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8695
- Sat Dec 27, 2003 7:32 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10593 - Kites
- Replies: 18
- Views: 8695
10593 - Kites
5
..x..
.xxx.
xxxxx
.xxx.
..x..
11
4
xxxx
xxxx
xxxx
xxxx
18
5
xxxxx
xxx..
.xxx.
..xxx
xxxxx
9
6
xxxxxx
.xxxxx
xxxxx.
.xxxxx
xxxxx.
.xxxxx
41
Above is my answer.
Anything wrong??![8)](./images/smilies/icon_cool.gif)
..x..
.xxx.
xxxxx
.xxx.
..x..
11
4
xxxx
xxxx
xxxx
xxxx
18
5
xxxxx
xxx..
.xxx.
..xxx
xxxxx
9
6
xxxxxx
.xxxxx
xxxxx.
.xxxxx
xxxxx.
.xxxxx
41
Above is my answer.
Anything wrong??
![8)](./images/smilies/icon_cool.gif)
- Sat Dec 27, 2003 6:00 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10592 - Freedom Fighter
- Replies: 17
- Views: 11937
- Sat Dec 27, 2003 5:27 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10592 - Freedom Fighter
- Replies: 17
- Views: 11937
- Wed Sep 17, 2003 7:12 am
- Forum: Volume 105 (10500-10599)
- Topic: 10513 - Bangladesh Sequences
- Replies: 15
- Views: 9904
- Mon Sep 15, 2003 7:14 pm
- Forum: Volume 2 (200-299)
- Topic: 254 - Towers of Hanoi
- Replies: 39
- Views: 20034
Hello, anupam. Memorizing all moves is much time consuming, maybe never be done, because the most numbers of moves would be 2^100-1. Try to solve it with your background knowledge. The Tower of Honai tells you that moves n disks from one peg to another needs 2^n-1 steps. So when you get a number, di...
- Fri Sep 12, 2003 8:58 am
- Forum: Volume 105 (10500-10599)
- Topic: 10501 - Simplified Shisen-Sho
- Replies: 12
- Views: 10396