Endless Paradigm

Full Version: a lil problem for u all to solve
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
wow good work people i thought i was going to have to give the answer myself
u_c_taker Wrote:wow good work people i thought i was going to have to give the answer myself

Nah, wee're smart cookies here in the void!Gongxi
Lol, trial and error, not bad :P

Of course, a simple program would've always worked:

C Code
#include <stdio.h>
int main()
{
	float a, b, c;
	for(a = 1; a<=200; a++)
		for(b=1; b<=34; b++)
			for(c=1; c<=10; c++)
				if(a+b+c == 100 && 0.5*a+3*b+10*c == 100)
				{
					printf("Answer is a=%d, b=%d, c=%d", a, b, c);
				}
	return 0;
}


Was trying to find a mathematical solution.
I'm sure it works, just I'm not bothered.


Good job cR@Zy!NgLi$h - you smart cookie (hai clever confectionary) :D
So u_c_taker, managed to skip doing your homework?

ZiNgA BuRgA Wrote:Lol, trial and error, not bad :P

Of course, a simple program would've always worked:

C Code
#include <stdio.h>
int main()
{
	float a, b, c;
	for(a = 1; a<=200; a++)
		for(b=1; b<=34; b++)
			for(c=1; c<=10; c++)
				if(a+b+c == 100 && 0.5*a+3*b+10*c == 100)
				{
					printf("Answer is a=%d, b=%d, c=%d", a, b, c);
				}
	return 0;
}


Was trying to find a mathematical solution.
I'm sure it works, just I'm not bothered.


Good job cR@Zy!NgLi$h - you smart cookie (hai clever confectionary) :D
So u_c_taker, managed to skip doing your homework?


damn you and your programming abilities zinga!!
lol, was it homework u_c?
nope it wasn't my homework zinga
my firend put this lil problem upto me n i figured out the answer in about 5 mins n he was kinda shocked cause he didnt know the answer himself lol n since the problem was kinda crazy i decided to put it on ep
u_c_taker Wrote:nope it wasn't my homework zinga
my firend put this lil problem upto me n i figured out the answer in about 5 mins n he was kinda shocked cause he didnt know the answer himself lol n since the problem was kinda crazy i decided to put it on ep
Suuuurrrreeeee.
Wee believe you...
i guess u have to make my word for it lol
lol it took over four days for this to get answered i first posted this in the the im soo bored thread n then reposted this here if it was my homework it would have had to submit it a lot faster  but i already knew the answer n i never asked for a mathematical solution n just the answer
i figured this problem out by a bit of logical thinking
1) A had to be between 80-98 objects and 40-49 epigs
2) C had to betweem 1-5 objects and 10-50 epigs
3) B had to between 1-16 objects and between 3-48 epigs
4) B+C had to be an even number and A had to be an even number
finally keeping all this is mind i found the answer out by a lil thinking n i tried to figure out hte effect each object had on both totals n i tried to keep epigs 100 and arrive at 100 object which i did very quickly indeed i didnt even think of a mathematical solution but a logical one
Pages: 1 2 3
Reference URL's