Search found 6 matches

by bjacoke001
Tue Nov 25, 2003 4:59 pm
Forum: Volume 3 (300-399)
Topic: 312 - Crosswords (II)
Replies: 20
Views: 8739

312 - Crosswords (II)

Does anyone have a tricky input that would show me why I'm getting WA? I can't find any errors in my program, but apparently it's wrong. Thanks.
by bjacoke001
Fri Nov 14, 2003 2:40 am
Forum: Volume 6 (600-699)
Topic: 609 - Metal Cutting
Replies: 4
Views: 3719

609 - Metal Cutting

I'm getting WA, but I'm fairly confident my algorithm is right. Does anyone have test data which might help to detect problems in my program?
by bjacoke001
Thu Aug 15, 2002 8:29 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 17228

It just means that the two points will be opposite corners of the rectangle, but aren't necessarily the top left and bottom right points. All you have to do is add a couple if statements to make the points the top left and bottom right corners, or you can just leave them as they are because their po...
by bjacoke001
Tue Aug 13, 2002 6:27 pm
Forum: Volume 2 (200-299)
Topic: 271 - Simply Syntax
Replies: 46
Views: 11982

My program also took over 20 seconds for the problem, and I used the same DP that you did. Does anyone have an idea why it would take so long?
by bjacoke001
Sat Aug 10, 2002 4:30 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 17228

Problem 191

I can't find any errors with my code, but it's still getting WA. Are there any big errors? @begin_of_source_code /* @JUDGE_ID: 17030CW 191 C++ */ #include <stdio.h> #include <stdlib.h> struct point { int x, y; point(int a=0, int b=0) { x=a; y=b; } }; int cross(point a, point b) { return (a.x*b.y-a.y...
by bjacoke001
Fri Jul 26, 2002 6:44 pm
Forum: Volume 1 (100-199)
Topic: 109 - SCUD Busters
Replies: 96
Views: 23774

109

What are we supposed to do in the case of a shot on the perimeter of the kingdom? I'm getting WA and I can't find a bug anywhere in my code unless the shot is on one of the edges or vertices, which really complicates things. Thanks.

Brian

Go to advanced search