Hello, can anybody help me out
on this problem?
In my code, I assumed the times are
real numbers because I got a lot of
WA's assuming they were ints. :)
Thanks for any help.
Broderick
[c]
#include <stdio.h>
#include <math.h>
typedef struct {
double loc;
double g,y,r;
} light_t;
int n;
light ...
Search found 34 matches
- Wed Sep 11, 2002 12:17 am
- Forum: Volume 6 (600-699)
- Topic: 617 - Nonstop Travel
- Replies: 9
- Views: 5369
- Thu Sep 05, 2002 8:14 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10246 - Asterix and Obelix
- Replies: 29
- Views: 14650
- Fri Aug 30, 2002 12:10 am
- Forum: Volume 102 (10200-10299)
- Topic: 10246 - Asterix and Obelix
- Replies: 29
- Views: 14650
- Thu Aug 29, 2002 3:59 am
- Forum: Volume 7 (700-799)
- Topic: 776 - Monkeys in a Regular Forest
- Replies: 51
- Views: 24819
argh!
argh! I'm pulling my hair out in frustration with this problem!
Can anybody give me a test case where this fails?
Thanks in advance,
Broderick
[c]
#include <stdio.h>
#include <assert.h>
int w,h;
char grid[2048][2048],out[2048][2048];
int dx[] = { 0, 1,1,1,0,-1,-1,-1};
int dy[] = {-1,-1,0,1,1, 1 ...
Can anybody give me a test case where this fails?
Thanks in advance,
Broderick
[c]
#include <stdio.h>
#include <assert.h>
int w,h;
char grid[2048][2048],out[2048][2048];
int dx[] = { 0, 1,1,1,0,-1,-1,-1};
int dy[] = {-1,-1,0,1,1, 1 ...
- Sun Aug 18, 2002 5:12 am
- Forum: Volume 2 (200-299)
- Topic: 258 - Mirror Maze
- Replies: 18
- Views: 5050
258
Hello,
I've gotten several WA's for this problem but I can't figure out why.
I'd hate to post code but I don't see any other way...:)
can anybody think of a test case where this code will fail?
The algorithm i used is this:
- dfs from one mirror to the next flipping the mirrors correctly as we go ...
I've gotten several WA's for this problem but I can't figure out why.
I'd hate to post code but I don't see any other way...:)
can anybody think of a test case where this code will fail?
The algorithm i used is this:
- dfs from one mirror to the next flipping the mirrors correctly as we go ...
- Sat Aug 17, 2002 3:10 am
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49017
- Fri Aug 16, 2002 3:52 am
- Forum: Volume 6 (600-699)
- Topic: 628 - Passwords
- Replies: 14
- Views: 13671
- Tue Aug 13, 2002 6:46 am
- Forum: Volume 3 (300-399)
- Topic: 332 - Rational Numbers from Repeating Fractions
- Replies: 83
- Views: 34233
- Thu Aug 08, 2002 10:31 pm
- Forum: Volume 6 (600-699)
- Topic: 615 - Is It A Tree?
- Replies: 71
- Views: 36120
- Wed Aug 07, 2002 5:33 pm
- Forum: Volume 6 (600-699)
- Topic: 615 - Is It A Tree?
- Replies: 71
- Views: 36120
- Tue Aug 06, 2002 10:02 pm
- Forum: Volume 2 (200-299)
- Topic: 211 - The Domino Effect
- Replies: 7
- Views: 4701
- Tue Aug 06, 2002 9:51 pm
- Forum: Volume 6 (600-699)
- Topic: 615 - Is It A Tree?
- Replies: 71
- Views: 36120
- Mon Aug 05, 2002 7:49 am
- Forum: Volume 7 (700-799)
- Topic: 729 - The Hamming Distance Problem
- Replies: 54
- Views: 21449
- Wed Jul 31, 2002 11:45 pm
- Forum: Volume 3 (300-399)
- Topic: 332 - Rational Numbers from Repeating Fractions
- Replies: 83
- Views: 34233
- Wed Jul 31, 2002 8:53 pm
- Forum: Volume 3 (300-399)
- Topic: 389 - Basically Speaking
- Replies: 94
- Views: 36479