Search found 34 matches

by broderic
Wed Sep 11, 2002 12:17 am
Forum: Volume 6 (600-699)
Topic: 617 - Nonstop Travel
Replies: 9
Views: 3725

617 - Nonstop Travel

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_t light[...
by broderic
Thu Sep 05, 2002 8:14 pm
Forum: Volume 102 (10200-10299)
Topic: 10246 - Asterix and Obelix
Replies: 29
Views: 9390

Thanks for the idea.
Hmm, I can't think of a reason (or a test case) as to why
you need to call it twice...One more thing to think about
today. :)

Broderick
by broderic
Fri Aug 30, 2002 12:10 am
Forum: Volume 102 (10200-10299)
Topic: 10246 - Asterix and Obelix
Replies: 29
Views: 9390

I keep getting WA on this problem...can anybody help me out?
I use floyd's (with some extra checking for the feast cost).

Here's my code (I won't leave it up too long, just for a day or two
or until somebody helps me).

Thanks in advance
by broderic
Thu Aug 29, 2002 3:59 am
Forum: Volume 7 (700-799)
Topic: 776 - Monkeys in a Regular Forest
Replies: 51
Views: 18385

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, 0,-...
by broderic
Sun Aug 18, 2002 5:12 am
Forum: Volume 2 (200-299)
Topic: 258 - Mirror Maze
Replies: 18
Views: 3028

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...
by broderic
Sat Aug 17, 2002 3:10 am
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 31787

hmm, very strange. I had the exact same problem as xenon
with constant WA's...print a newline after the last case, and you get
PE. What I don't understand is how that can result in WA?

thanks for the tip :)

broderick
by broderic
Fri Aug 16, 2002 3:52 am
Forum: Volume 6 (600-699)
Topic: 628 - Passwords
Replies: 14
Views: 9076

Hint: your output for the rule '00' is incorrect.
It should be
00
01
02
...
10
11
12
..
98
99
by broderic
Tue Aug 13, 2002 6:46 am
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 19416

hehe, thanks for the tip. I'm not sure why i was even using
doubles to begin with, the integer-only solution is pretty obvious
and easy to code.

Oh, btw, those were L's (not ones) for printing long long's.

Broderick
by broderic
Thu Aug 08, 2002 10:31 pm
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23018

hehe, i was being dumb. of course that's not a tree.
a simple one line fix and AC. :)

Thanks!
Broderick
by broderic
Wed Aug 07, 2002 5:33 pm
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23018

why wouldn't that be a tree?

Did you mean:
1 2
2 1
0 0
-1 -1

In which case I get "is not a tree".
by broderic
Tue Aug 06, 2002 10:02 pm
Forum: Volume 2 (200-299)
Topic: 211 - The Domino Effect
Replies: 7
Views: 3515

I don't think that's correct. for instance, you have the [0 4] domino
repeated twice (the second time as [4 0]). But there is only one of each
domino, so that layout isn't valid.

When i solved this problem I assumed that each domino had to be used
exactly once.

Hope this helps.
by broderic
Tue Aug 06, 2002 9:51 pm
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23018

I'd hate to post code here, but I can't seem to find the bug...it's driving
me crazy! :) (Btw, this codes passes all the tests posted to this board,
but still gets WA).
by broderic
Mon Aug 05, 2002 7:49 am
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15379

Multiple input.
by broderic
Wed Jul 31, 2002 11:45 pm
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 19416

Could anybody help me out? my output matches the above tests
exactly, but I still get WA. any ideas?
Here's me code, I'll delete it if anybody helps me out. :)
by broderic
Wed Jul 31, 2002 8:53 pm
Forum: Volume 3 (300-399)
Topic: 389 - Basically Speaking
Replies: 94
Views: 22124

If from==to, you're just printing out the number you read in.
what if you are given "000000"? the output should be "0", but
you write out "000000".

Broderick

(btw, i switched your code and got ac)

Go to advanced search