Search found 6 matches
- Tue Nov 25, 2003 4:59 pm
- Forum: Volume 3 (300-399)
- Topic: 312 - Crosswords (II)
- Replies: 20
- Views: 12789
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.
- Fri Nov 14, 2003 2:40 am
- Forum: Volume 6 (600-699)
- Topic: 609 - Metal Cutting
- Replies: 4
- Views: 12236
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?
- Thu Aug 15, 2002 8:29 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33414
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 ...
- Tue Aug 13, 2002 6:27 pm
- Forum: Volume 2 (200-299)
- Topic: 271 - Simply Syntax
- Replies: 46
- Views: 19796
- Sat Aug 10, 2002 4:30 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33414
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 ...
@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 ...
- Fri Jul 26, 2002 6:44 pm
- Forum: Volume 1 (100-199)
- Topic: 109 - SCUD Busters
- Replies: 96
- Views: 36900
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
Brian