Search found 9 matches

by rubendv
Mon Mar 07, 2005 8:10 pm
Forum: Volume 104 (10400-10499)
Topic: 10466 - How Far?
Replies: 25
Views: 8420

I use the angles between the sun and each planet. Here is my solution: #include <stdio.h> #include <math.h> #define MAXBODIES (50) typedef struct{ float x; float y; } point; typedef struct{ int r; int t; } planet; planet table[MAXBODIES + 1]; point res[MAXBODIES + 1]; void solve(int n, int t){ float...
by rubendv
Sun Mar 06, 2005 5:46 pm
Forum: Volume 104 (10400-10499)
Topic: 10466 - How Far?
Replies: 25
Views: 8420

10466 - Critical Inputs please!!!

Hi, my solution for this problem has got WA. I already tested it locally and it works fine.

Can anyone send me some critical inputs, and the results your program gave?

Thanks in advance!
by rubendv
Tue Mar 01, 2005 7:07 pm
Forum: Volume 108 (10800-10899)
Topic: 10813 - Traditional BINGO
Replies: 28
Views: 9710

Thanks Larry.

Although I corrected my program, I still got WA.
Tell me another thing:

If I am on a particular game instance "i", and I reach BINGO in less than the 75 numbers, the other numbers that didn't came out count in the next game instance "i + 1"?

Thanks in advance
by rubendv
Tue Mar 01, 2005 12:48 am
Forum: Volume 108 (10800-10899)
Topic: 10813 - Traditional BINGO
Replies: 28
Views: 9710

10813 - Doubt in the interpretation

Hi, I don't quite understand what is meant by "A player may mark the centre FREE SPACE at any time"! I interpreted this as: At any time, a player may choose a valid number for column "N", (31 to 45) to assign to the free space. This allows me to choose any number for 31 to 45 that does not appear in...
by rubendv
Thu Feb 24, 2005 8:00 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15574

THANKS!!!

Sedefcho, thank you very much for your input example.
I found the error.
Thanks a lot. :)
by rubendv
Sun Feb 20, 2005 1:49 pm
Forum: Volume 104 (10400-10499)
Topic: 10415 - Eb Alto Saxophone Player
Replies: 21
Views: 6488

10415 - Why Wrong Answer?

Hi, I have tested my program with an infinity of inputs, and it seems correct to me. However, it still evaluates to WA in the judge. Could anyone take a look at it, or send me some inputs of your one? Thanks! #include <stdio.h> #include <string.h> #define MAXLENGTH (10) #define MAXKEYS (500) short c...
by rubendv
Sat Feb 19, 2005 5:06 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15574

729 - Why Wrong Answer?

I tested my program with a lot of examples, I have read the code and I don't see where the problem may be. Please, give it a look and help me out. Thanks! #include <stdio.h> #define MAXLENGTH (16) char sequence[MAXLENGTH + 1]; int flag; int done(int h){ int i, counter = 0; for (i = 0; i < MAXLENGTH;...
by rubendv
Sun Apr 04, 2004 10:28 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 13812

Clarification 104

Must the sequence always begin with the currency of country 1, that is, the currency of the country that corresponds to the first line of the matrix?
Thanks,
by rubendv
Mon Mar 15, 2004 10:26 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49495

Problem 102. I can't figure why the WA. HELP

#include <stdio.h> #include <string.h> #define LIM (9) unsigned long costs[LIM / 3 + 3]; unsigned long bin[LIM]; char first, second, third; void countMoves(void){ costs[0] = bin[1] + bin[2] + bin[3] + bin[4] + bin[6] + bin[8]; /* BCG */ costs[1] = bin[1] + bin[2] + bin[3] + bin[5] + bin[6] + bin[7];...

Go to advanced search