Search found 21 matches

by Chow Wai Chung
Sat May 17, 2003 9:19 am
Forum: Volume 101 (10100-10199)
Topic: 10147 - Highways
Replies: 67
Views: 20688

10147 - Highways

why WA?? :x Could anyone send me some test data?? Thank you very much [cpp] #include <stdio.h> #include <stdlib.h> #include <math.h> typedef struct edges { int v1; int v2; double length; }Edge; int comp(const void *a,const void *b) { if (((Edge *)a)->length > ((Edge *)b)->length) return 1; if (((Edg...
by Chow Wai Chung
Wed May 14, 2003 4:25 pm
Forum: Volume 103 (10300-10399)
Topic: 10397 - Connect the Campus
Replies: 75
Views: 26007

10397 Connect the Campus, WA????

I had try many test data, it seems nothing wrong, can anyone tell me what wrong with my program?? Thank you. Input 4 103 104 104 100 104 103 100 100 1 4 2 4 103 104 104 100 104 103 100 100 1 4 2 1 100 500 0 4 0 0 0 1 1 0 1 1 2 1 2 3 4 6 0 0 200 50 100 200 50 300 300 200 300 300 2 3 4 5 6 6 0 0 200 5...
by Chow Wai Chung
Wed May 07, 2003 5:17 am
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 132
Views: 25188

For an input with no edges, like this:

-------------------
1

B
-------------------

Should the output be the number of nodes (2 in this example)?
YES
by Chow Wai Chung
Fri Apr 04, 2003 2:33 am
Forum: Volume 5 (500-599)
Topic: 586 - Instant Complexity
Replies: 6
Views: 4025

This is my test case and output

This is my input 9 BEGIN LOOP OP 50 END OP 9 END BEGIN LOOP n LOOP n LOOP 4 LOOP 9 END END END END END BEGIN LOOP n OP 4 LOOP 3 LOOP n OP 1 END OP 2 END OP 1 END OP 17 END BEGIN OP 1997 LOOP n LOOP n OP 1 END END END BEGIN END BEGIN LOOP 110 OP 4 END END output Program #1 Runtime = 9 Program #2 Runt...
by Chow Wai Chung
Thu Mar 20, 2003 3:28 am
Forum: Volume 5 (500-599)
Topic: 586 - Instant Complexity
Replies: 6
Views: 4025

586 - Instant Complexity

I had test my program many times, but i still get a WA, can anyone test my program and tell me what mistake i have??
Thank you!!
[c]
AC now...thanks
[/c]
by Chow Wai Chung
Sun Jan 19, 2003 4:09 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 35143

727 Wrong Answer

I had try many dataset to test my program, and it seems OK, but i reveive WA from the judge!!! I also had read the message here about P727, it seems the test data of this program have something wrong. But i still don't know what wrongs with my program? Thank you [c] #include <stdio.h> #include <ctyp...

Go to advanced search