Search found 24 matches

by dh3014
Fri Apr 19, 2002 2:40 am
Forum: Volume 102 (10200-10299)
Topic: 10256 - The Great Divide
Replies: 21
Views: 7408

same question

I have the same question to this problem. who has the correct output for following input data: -- 2 2 0 0 0 1 1 0 1 1 2 2 0 0 1 1 0 1 1 0 1 1 100 100 100 100 1 1 100 100 100 101 1 2 1 0 3 0 2 0 1 2 2 0 3 0 1 0 4 1 0 0 0 2 2 2 2 0 1 1 4 4 0 0 10 0 10 10 0 10 2 4 4 2 4 4 2 2 2 2 0 0 0 1 0 6 0 1 2 2 0 ...
by dh3014
Mon Apr 15, 2002 3:49 pm
Forum: Volume 5 (500-599)
Topic: 506 - System Dependencies
Replies: 17
Views: 6678

506 System Dependencies

I need correct output for following test data: -- DEPEND A B C DEPEND B D E G DEPEND C G E K DEPEND K Z DEPEND E S INSTALL A LIST REMOVE A LIST INSTALL B INSTALL C INSTALL A REMOVE A INSTALL K LIST REMOVE C REMOVE A INSTALL A LIST INSTALL C REMOVE A LIST END -- following are my program's output -- D...
by dh3014
Mon Apr 08, 2002 3:18 pm
Forum: Volume 100 (10000-10099)
Topic: 10073 - Constrained Exchange Sort
Replies: 14
Views: 4656

10073 - Constrained Exchange Sort

May anybody provide the correct answer for following test data?:

2
LKJIHGFEDCBA
KLJIHGFEDCBA

My output is:
Permutation #1
FCBAGJKFIBAGDKFEGHEICGHDJFICBADJKICBADJK

Permutation #2
HGABEHGECIKGJDBCIFGJDACIFKJDABIFKJDABCF

I want to know if my output sequence is the shortest.
by dh3014
Mon Apr 01, 2002 4:57 pm
Forum: Volume 102 (10200-10299)
Topic: 10201 - Adventures in Moving - Part IV
Replies: 23
Views: 11683

Quite appreciate.
According your output.
I got AC.
by dh3014
Sun Mar 31, 2002 4:48 pm
Forum: Volume 102 (10200-10299)
Topic: 10201 - Adventures in Moving - Part IV
Replies: 23
Views: 11683

10201 - Adventures in Moving - Part IV

What should be the correct output for following input?
Or anyone knows any tricks in this problem?
-----
4
500
100 1
300 1
350 1
501 10

101
100 100
102 1

100

101
by dh3014
Sun Mar 31, 2002 2:44 pm
Forum: Volume 1 (100-199)
Topic: 139 - Telephone Tangles
Replies: 66
Views: 8528

I've passed (P.E also)
Thanks everybody
by dh3014
Thu Mar 28, 2002 9:16 am
Forum: Volume 1 (100-199)
Topic: 139 - Telephone Tangles
Replies: 66
Views: 8528

Is there any tricks on this problem?
I've got AC before the problem is rejudged.

Now I cannot find out what's the reason I
got WA, does anybody know what should I notice?
by dh3014
Wed Mar 27, 2002 3:19 am
Forum: Volume 102 (10200-10299)
Topic: 10255 - The knight's Tour
Replies: 14
Views: 5683

LittleJohn:
Your heuristic is correct.

ram:
that's right.
n <= 5 (except 1!!) && (n mod 2 == 1)
has no circuit tour
by dh3014
Tue Mar 26, 2002 2:31 am
Forum: Volume 1 (100-199)
Topic: 180 - Eeny Meeny
Replies: 34
Views: 10587

I got several WA and don't what's the problem is...can anyone provides some test data or help testing my program? Thanks your reading anyway. ----------------------------- #include <stdio.h> #include <string.h> #define MAXTABLE 501 #define MOVELENGTH 15 typedef struct People People; struct People { ...

Go to advanced search