Search found 34 matches

by shuniu
Mon May 17, 2004 10:15 pm
Forum: Volume 106 (10600-10699)
Topic: 10600 - ACM Contest and Blackout
Replies: 34
Views: 13667

I passed the example test data, but also got WA first time.
Turned out there is a problem when the graph is not connected (it happens when trying to find the second minimum value).
I fixed that and now it is AC. Try this:

Input:

Code: Select all

1
4 4
1 4 5
1 2 2
2 3 3
1 3 4
Output:

Code: Select all

10 11
by shuniu
Wed Nov 26, 2003 12:59 am
Forum: Volume 102 (10200-10299)
Topic: 10213 - How Many Pieces of Land ?
Replies: 54
Views: 23053

10213 Combinatorics Approach

There is a combinatorics explaination to the formula, it is actually 1 + (n choose 2) + (n choose 4). 1 is the original circle. (n choose 2) is the number of lines we are drawing, by choosing the 2 endpoints. (n choose 4) is the number of intersections inside the circle, by choosing 4 points ABCD(in...
by shuniu
Tue Oct 28, 2003 6:15 am
Forum: Volume 1 (100-199)
Topic: 158 - Calendar
Replies: 44
Views: 7919

i finally figured it out

This problem is not very clearly specified, I tried many possible interpretations before getting accepted. And it took me a long time to get rid of a PE, because i didnt realize the date after Today is: must also be right aligned in a field of 3. The order is by date, then by priority displayed , th...
by shuniu
Thu Oct 16, 2003 6:21 pm
Forum: Java
Topic: Is There Vector Support?
Replies: 10
Views: 6753

Is There Vector Support?

I used Vector in my program and got the following errors: 01992950_24.java:46: Can't find method `add(LB;)' in class `java.util.Vector'. bs.add(b); ^ 01992950_24.java:51: Can't find method `get(I)' in class `java.util.Vector'. B minB = (B)bs.get(0); ^ Is it because Vector class is not supported in U...

Go to advanced search