Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a lil problem for u all to solve
Author Message
u_c_taker
hacks=drama

Posts: 3,185.2011
Threads: 102
Joined: 29th Jan 2007
Reputation: -1.03084
E-Pigs: 36.7855
Offline
Post: #21
RE: a lil problem for u all to solve
wow good work people i thought i was going to have to give the answer myself

26/01/2008 11:00 AM
Find all posts by this user Quote this message in a reply
cR@Zy!NgLi$h
Speculator

Posts: 804.3073
Threads: 37
Joined: 26th Apr 2007
Reputation: -1.64513
E-Pigs: 8.9041
Offline
Post: #22
RE: a lil problem for u all to solve
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

[Image: signature2ct1.jpg]
26/01/2008 11:59 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
Offline
Post: #23
RE: a lil problem for u all to solve
Lol, trial and error, not bad :P

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

C Code
1
2
3
4
5
6
7
8
9
10
11
12
13
#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?

(This post was last modified: 26/01/2008 10:21 PM by ZiNgA BuRgA.)
26/01/2008 10:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dedat
I also poo when hungry.

Posts: 1,319.1315
Threads: 32
Joined: 14th Apr 2007
Reputation: 1.65351
E-Pigs: 3.5147
Offline
Post: #24
RE: a lil problem for u all to solve
ZiNgA BuRgA Wrote:Lol, trial and error, not bad :P

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

C Code
1
2
3
4
5
6
7
8
9
10
11
12
13
#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?
(This post was last modified: 27/01/2008 02:37 AM by dedat.)
27/01/2008 02:32 AM
Find all posts by this user Quote this message in a reply
u_c_taker
hacks=drama

Posts: 3,185.2011
Threads: 102
Joined: 29th Jan 2007
Reputation: -1.03084
E-Pigs: 36.7855
Offline
Post: #25
RE: a lil problem for u all to solve
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

27/01/2008 11:10 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1294
Offline
Post: #26
RE: a lil problem for u all to solve
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...
28/01/2008 03:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
u_c_taker
hacks=drama

Posts: 3,185.2011
Threads: 102
Joined: 29th Jan 2007
Reputation: -1.03084
E-Pigs: 36.7855
Offline
Post: #27
RE: a lil problem for u all to solve
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

28/01/2008 10:20 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: