Search found 8 matches

by hackfox
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:)
by hackfox
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 :D

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
by hackfox
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
by hackfox
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 ...
by hackfox
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 ...
by hackfox
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 ...
by hackfox
Mon Oct 13, 2003 7:08 pm
Forum: Volume 7 (700-799)
Topic: 776 - Monkeys in a Regular Forest
Replies: 51
Views: 24842

Bobi,
1. You can try to allocate the array dynamically. I use the C function
malloc and realloc and free to do all thing.

2.The last forest ends with EOF, not %. But for output, you shold print
a % after the last input.

3.I onlly deal with rectangle matrix. So I guess the number of letter
in ...
by hackfox
Fri Aug 08, 2003 9:48 pm
Forum: Volume 102 (10200-10299)
Topic: 10284 - Chessboard in FEN
Replies: 11
Views: 14797

Note pawn doesn't attack piece in front of it. It attacks piece in left/right
front of it.

Go to advanced search