3344556677=153
make the following equation make sence by adding the following signs: + + - -
(note the symbols are in in betwen the numbers;
The closests i got to the answer was 154;; urgg..
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Posted 22 November 2008 - 12:55 AM
Posted 22 November 2008 - 01:53 AM
Edited by galexcd, 23 November 2008 - 06:56 AM.
Posted 22 November 2008 - 07:33 AM
for(poc=1;poc<13;poc++){
for(ptc=poc+1;ptc<14;ptc++){
for(moc=0;moc<13;moc++){
if((moc!=poc)&&(moc!=ptc)){
for(mtc=moc+1;mtc<14;mtc++){
if((mtc!=poc)&&(mtc!=ptc)){
st="20719652661508"
if(mtc>ptc){
st=st.substring(0,mtc)+'-'+st.substring(mtc)
if(moc>ptc){
st=st.substring(0,moc)+'-'+st.substring(moc)
st=st.substring(0,ptc)+'+'+st.substring(ptc)
st=st.substring(0,poc)+'+'+st.substring(poc)
}else{
st=st.substring(0,ptc)+'+'+st.substring(ptc)
if(moc>poc){
st=st.substring(0,moc)+'-'+st.substring(moc)
st=st.substring(0,poc)+'+'+st.substring(poc)
}else{
st=st.substring(0,poc)+'+'+st.substring(poc)
st=st.substring(0,moc)+'-'+st.substring(moc)
}}}else{
st=st.substring(0,ptc)+'+'+st.substring(ptc)
if(mtc>poc){
st=st.substring(0,mtc)+'-'+st.substring(mtc)
if(moc>poc){
st=st.substring(0,moc)+'-'+st.substring(moc)
st=st.substring(0,poc)+'+'+st.substring(poc)
}else{
st=st.substring(0,poc)+'+'+st.substring(poc)
st=st.substring(0,moc)+'-'+st.substring(moc)
}}else{
st=st.substring(0,poc)+'+'+st.substring(poc)
st=st.substring(0,mtc)+'-'+st.substring(mtc)
st=st.substring(0,moc)+'-'+st.substring(moc)
}}
st=st.replace('66','66==');
st=st.replace('6+6','6+6==');
st=st.replace('6-6','6-6==');
//document.write(st+" = "+eval(st)+"<br>")
//eval(st) never equals 1508 :(
if(eval(st)){document.write(st+"<br>")}
}}}}}}
Edited by Nabb, 22 November 2008 - 09:43 AM.
Posted 22 November 2008 - 07:47 AM
galexcd, on Nov 22 2008, 07:23 AM, said:
Quote
Posted 22 November 2008 - 09:00 AM
xpress, on Nov 22 2008, 02:47 AM, said:
Posted 22 November 2008 - 09:31 AM
anwiii, on Nov 22 2008, 02:30 PM, said:

0 members, 1 guests, 0 anonymous users