Search found 4 matches

by ashfaq_csdu
Tue Nov 12, 2002 8:36 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53612

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 result GCB c...
by ashfaq_csdu
Mon Nov 11, 2002 8:19 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 191023

Re: Test all possibilities

rhtiwari wrote: if (firstnum > lastnum)
{
int tmpnum ;
tmpnum = firstnum ;
firstnum = lastnum ;
lastnum = firstnum ; :o
}
does it really interchange the values of firstnum and lastnum? 8)
so recode it [lastnum = tmpnum].


ashfaq
by ashfaq_csdu
Mon Nov 11, 2002 8:08 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53612

Re: prob 102

Axl wrote:Wrong Answer: 102
Your program has not solved the problem. It ran during 0.152 seconds.


:o float menora[6];

if (menor==0)
printf("BCG %d :o \n", menora[menor]);
The problem is here.
floating numbers but you are using "%d" :o
use long int instead

ashfaq
by ashfaq_csdu
Tue Oct 22, 2002 9:45 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 33218

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 ignor...

Go to advanced search