Search found 11 matches

by Maddas
Mon Oct 11, 2004 7:25 pm
Forum: Volume 6 (600-699)
Topic: 638 - Finding Rectangles
Replies: 13
Views: 7397

I found the mistake, I don't understand why it didn't work before but it works now. :)
by Maddas
Mon Oct 11, 2004 5:13 pm
Forum: Volume 6 (600-699)
Topic: 638 - Finding Rectangles
Replies: 13
Views: 7397

638 Why WA?

Hi, my program works fine for the sample input and produces correct output for many random input files I generated (I gave it to a friend who has a program that gives the right answer and his output was the same as my output)

Are there any really tricky test cases? Can points be on top of each ...
by Maddas
Sun Sep 26, 2004 12:18 pm
Forum: C
Topic: alloca() ?
Replies: 4
Views: 2803

Thanks, my manpage said it was in either alloca.h and stdlib.h :-)
by Maddas
Sun Sep 26, 2004 10:44 am
Forum: C
Topic: alloca() ?
Replies: 4
Views: 2803

alloca() ?

Hi.
I'm trying to use alloca() in a program but every time I do, I get a compiler error. Isn't it in stdlib.h? How can I use it, and if not, why is it forbidden? :)

Thanks, Maddas
by Maddas
Wed Apr 28, 2004 12:53 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33988

Aaaargh, I confused maximum string length and maximum number of sequences in my code. The problem just didn't show for my input

Thanks a lot :-)
by Maddas
Mon Apr 26, 2004 12:18 pm
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33988

Can anybody give ma few "tricky" sample inputs? I tested my program against a very large input file and all the outputs were correct.
I'm really stumped :-(
by Maddas
Sat Apr 24, 2004 2:27 pm
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33988

Yup, my program only accepts multiple input things.
by Maddas
Sat Apr 24, 2004 11:46 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 33988

612 - DNA Sorting - WA, why?

Hi. I'm getting WA for problem 612, but I don't know why. I tested my program against a reasonably large (and in my opinion complete) input/output combination, and my program gets everything right (newlines and so too).

I'd like to ask whether anybody minds giving me some sample input/output to ...
by Maddas
Sat Apr 03, 2004 9:30 pm
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 28080

I found the problem. The problem is the input!
In the problem description it says:
The format for a date is ``month day year" where month is a number between 1 (which indicates January) and 12 (which indicates December), day is a number between 1 and 31, and year is positive number
But that is not ...
by Maddas
Sat Apr 03, 2004 11:14 am
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 28080

My program gives the same output:
February 28, 0 is a Sunday
February 29, 0 is a Monday
January 1, 1 is a Saturday
September 10, 2500 is a Friday
May 5, 999 is a Friday
July 3, 8888 is a Saturday
February 27, 1000 is a Tuesday
February 28, 1000 is a Wednesday
February 29, 1000 is a Thursday
2/30 ...
by Maddas
Sat Apr 03, 2004 1:49 am
Forum: Volume 6 (600-699)
Topic: 602 - What Day Is It?
Replies: 56
Views: 28080

602 WA -- why?

hi
I'm about to give up now :-(
I tested my program with lots of input and it always works
but when I send it I get WA
only thing that I didn't do is for year 0, but I read year 0 doesn't come anyway so that shouldn't matter

I also tried with this input:

2 28 0
2 29 0
1 1 1
9 10 2500
5 5 999 ...

Go to advanced search