Search found 4 matches
- Tue Nov 12, 2002 8:36 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116565
Re: the updated version with the same prob...
/*"GBC";*/ :-?
menora[3]=caixas[0]+caixas[2]+caixas[4]+caixas[5]+caixas[6]+caixas[7];
/*"GCB";*/ :-?
menora[2]=caixas[0]+caixas[2]+caixas[3]+caixas[4]+caixas[7]+caixas[8];
I think the problem is there.
surely GBC comes before GCB. But you wrote menora[3] = GBC
and menora[2] = GCB. As a ...
- Mon Nov 11, 2002 8:19 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 317849
Re: Test all possibilities
does it really interchange the values of firstnum and lastnum?rhtiwari wrote: if (firstnum > lastnum)
{
int tmpnum ;
tmpnum = firstnum ;
firstnum = lastnum ;
lastnum = firstnum ;![]()
}

so recode it [lastnum = tmpnum].
ashfaq
- Mon Nov 11, 2002 8:08 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116565
Re: prob 102
The problem is here.Axl wrote:Wrong Answer: 102
Your program has not solved the problem. It ran during 0.152 seconds.
float menora[6];
if (menor==0)
printf("BCG %d\n", menora[menor]);
floating numbers but you are using "%d"

use long int instead
ashfaq
- Tue Oct 22, 2002 9:45 pm
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 58003
problem in 401
hi,
I am getting WA for 6 times in this problem. I think I am missing something.
Q1. What happened if the string is of only 1 letter?
Q2. Can the string be of small letters?
Q3. If there is no reverse then what happens? Will it say this is not mirrored string or mirrored palindrome? Or will it ...
I am getting WA for 6 times in this problem. I think I am missing something.
Q1. What happened if the string is of only 1 letter?
Q2. Can the string be of small letters?
Q3. If there is no reverse then what happens? Will it say this is not mirrored string or mirrored palindrome? Or will it ...