Search found 8 matches
- Mon Apr 17, 2006 8:25 pm
- Forum: Volume 8 (800-899)
- Topic: 843 - Crypt Kicker
- Replies: 51
- Views: 35908
A tricky
I don't go through Onko's source code but I use the same method to Onko's. I *sort* the array and find if I compare words with long lenth first, then there are much less recursion than short length. Try sort when your think your speed is not good enoght. There are often miracles happen:)
- Thu Dec 09, 2004 9:13 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10787 - Modular Equations
- Replies: 2
- Views: 2152
Yeah...
Finally I got Accept
Here are some cases I failed to consider.
Input
3
1 1 -1 -1 3 3
1 1 -3 -2 3 3
1 1 -5 -1 3 3
Output
Case 1: 0
Case 2: 1
Case 3: 1

Here are some cases I failed to consider.
Input
3
1 1 -1 -1 3 3
1 1 -3 -2 3 3
1 1 -5 -1 3 3
Output
Case 1: 0
Case 2: 1
Case 3: 1
- Thu Dec 09, 2004 8:02 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10787 - Modular Equations
- Replies: 2
- Views: 2152
Test data
Some input and the output of my program.
4
-1000 1000 -1000 1000 1 1000
-1000 1000 -1000 1000 1 1
-1000 1000 -1000 1000 1 2
-1000 0 -1000 0 1 1000
Output
Case 1: 43813896
Case 2: 4004001
Case 3: 8008002
Case 4: 11459448
4
-1000 1000 -1000 1000 1 1000
-1000 1000 -1000 1000 1 1
-1000 1000 -1000 1000 1 2
-1000 0 -1000 0 1 1000
Output
Case 1: 43813896
Case 2: 4004001
Case 3: 8008002
Case 4: 11459448
- Thu Dec 09, 2004 7:57 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10787 - Modular Equations
- Replies: 2
- Views: 2152
10787 - Modular Equations
From the accept ratio, it seems this problem is easy.
But unfortunately, I still get Wrong Answer after several attempts.
Could someone provide some corner cases that we often ignore?
Besides, I have some assumptions, but don't know if it's always true.
1.About the input, assume the 3 pairs of ...
But unfortunately, I still get Wrong Answer after several attempts.
Could someone provide some corner cases that we often ignore?
Besides, I have some assumptions, but don't know if it's always true.
1.About the input, assume the 3 pairs of ...
- Mon Jun 28, 2004 10:18 pm
- Forum: Volume 7 (700-799)
- Topic: 719 - Glass Beads
- Replies: 41
- Views: 29877
Try a sequence of 10000 'a'
Hi javier lira,
You can try a case with aaaaa.....(repeat 10000 times)
or try a case with aaaaa...(5000 times)...bbbbb...(5000 times).
Remember that you don't need to scan from left to right for the start point with step 1 always.
If there are matches more than one characters, you can move to ...
You can try a case with aaaaa.....(repeat 10000 times)
or try a case with aaaaa...(5000 times)...bbbbb...(5000 times).
Remember that you don't need to scan from left to right for the start point with step 1 always.
If there are matches more than one characters, you can move to ...
- Mon Mar 08, 2004 4:59 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10093 - An Easy Problem!
- Replies: 52
- Views: 23257
What I consider
Hi Sohel,
Below is what I consider in this program. For your reference.
a. Don't take care of +/-. Even there are + or - symbol, the result should be the same.
b.Take care of white space, tab. In fact. this kind of characters are ALL
skipped.
c.Check invalid character for certain base. For ...
Below is what I consider in this program. For your reference.
a. Don't take care of +/-. Even there are + or - symbol, the result should be the same.
b.Take care of white space, tab. In fact. this kind of characters are ALL
skipped.
c.Check invalid character for certain base. For ...
- Mon Oct 13, 2003 7:08 pm
- Forum: Volume 7 (700-799)
- Topic: 776 - Monkeys in a Regular Forest
- Replies: 51
- Views: 24842
- Fri Aug 08, 2003 9:48 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10284 - Chessboard in FEN
- Replies: 11
- Views: 14797