Another google puzzle

| 14 Comments | No TrackBacks

Here is another cool puzzle from google:

Solve this cryptic equation, realizing of course that values 
for M and E could be interchanged. No leading zeros are allowed.

WWWDOT - GOOGLE = DOTCOM

Should admit I failed to solve it with just a pen and a piece of paper. Or I'm stupid or was too busy, but I wrote a small C# program in just two minutes and my computer cracked it down in another couple of minutes by a brute force. Viva computers - no brains are needed anymore :)

Related Blog Posts

No TrackBacks

TrackBack URL: http://www.tkachenko.com/cgi-bin/mt-tb.cgi/319

14 Comments

WWWDOT - GOOGLE = DOTCOM

I get the decimal ascii value:

87*3*68*79*84 - 71*79*2*71*76*E = 68*79*84*67*79*M

117775728 - 60532328E = 2388455664M

M = (117775728 - 60532328E) / 2388455664.

please can someone explain me this problem in detail iam unable to understand it pls pls pls

I just take a look on this problem.
For WWWDOT - GOOGLE = DOTCOM , in fact we need give out the value of " W,D,O,T,G,E,M,L "
each item is a variable.
Then, I think we need create some restriction or relationship. Such as , we can know, W - G = D.
And we can create some dependance between each restriction, for example
W - G = D depend on W-O = O
or
W - G -1 = D depend on W+10 - O = O

Then base on those dependance and restriction, we can cut some item of the Set. The set is all possiable value for each variable:

W[1-9]
| D[1-9]
| O[0-9]
| T[0-9]
| G[1-9]
| E[0-9]
| M[0-9]
| L[0-9]

---------------------------
make the set smaller than before, then, we can verify each value, just do the same thing as Varun did, I think it will more fast.
If the expression is bigger, we can get more restriction, so we can cut more item.
So in big expression , maybe it work well.
But, How to cut, hehe, I need some time to think :P

int getwwwdot(int w,int d, int o,int t)
{
int nTemp = 0 ;
nTemp += w * 100000;
nTemp += w * 10000;
nTemp += w * 1000;
nTemp += d * 100;
nTemp += o * 10;
nTemp += t;
return nTemp;
}

int getgoogle(int g,int o,int l,int e)
{
int nTemp = 0 ;
nTemp += g * 100000;
nTemp += o * 10000;
nTemp += o * 1000;
nTemp += g * 100;
nTemp += l * 10;
nTemp += e;
return nTemp;
}
int getdotcom(int d,int o,int t,int c,int m)
{
int nTemp = 0 ;
nTemp += d * 100000;
nTemp += o * 10000;
nTemp += t * 1000;
nTemp += c * 100;
nTemp += o * 10;
nTemp += m;
return nTemp;
}
int getgooglm(int g,int o,int l,int m)
{
int nTemp = 0 ;
nTemp += g * 100000;
nTemp += o * 10000;
nTemp += o * 1000;
nTemp += g * 100;
nTemp += l * 10;
nTemp += m;
return nTemp;
}
int getdotcoe(int d,int o ,int t,int c, int e)
{
int nTemp = 0 ;
nTemp += d * 100000;
nTemp += o * 10000;
nTemp += t * 1000;
nTemp += c * 100;
nTemp += o * 10;
nTemp += e;
return nTemp;
}
int _tmain(int argc, _TCHAR* argv[])
{
int w , d, o,t,g ,l ,e,c,m, wwwdot,google,dotcom,googlm,dotcoe;
for(w = 1 ; w for(d = 1 ; d for(o = 0 ; o for(t =0; t for(g = 1; g for(l = 0; l for(e = 0 ; e for(c =0;c for(m = 0 ;m {
wwwdot = getwwwdot(w,d,o,t);
google = getgoogle(g,o,l,e);
dotcom = getdotcom(d,o,t,c,m);
if(wwwdot == google + dotcom) {
googlm = getgooglm(g,o,l,m);
dotcoe = getdotcoe(d,o,t,c,e);
if(wwwdot == googlm + dotcoe) {
printf("%d - %d = %d \r\n", wwwdot,google,dotcom);
printf("%d - %d = %d \r\n", wwwdot,googlm,dotcoe);
printf("\r\n");
}
}
}
return 0;
}

And how about this?
wwwdot = google - dotcom ????

these are all possible solutions:

@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
333167 - 166102= 167065
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
333167 - 166103= 167064
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
333167 - 166104= 167063
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
333167 - 166105= 167062
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555278 - 277203= 278075
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555278 - 277204= 278074
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555278 - 277205= 278073
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555378 - 177102= 378276
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555378 - 177103= 378275
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555378 - 177104= 378274
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555378 - 177108= 378270
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
555378 - 177199= 378179
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
666132 - 533502= 132630
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
666132 - 533594= 132538
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
666132 - 533596= 132536
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
666132 - 533598= 132534
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777389 - 388302= 389087
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777389 - 388304= 389085
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777389 - 388305= 389084
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777389 - 388307= 389082
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777489 - 288203= 489286
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777489 - 288204= 489285
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777489 - 288206= 489283
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777489 - 288209= 489280
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777589 - 188102= 589487
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777589 - 188103= 589486
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777589 - 188106= 589483
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777589 - 188107= 589482
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
777589 - 188109= 589480
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
888243 - 644602= 243641
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
888243 - 644603= 243640
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
888243 - 644695= 243548
@@@@@@@@@@@@@@@@@@@@@@@@@
WWWDOT - GOOGLE: DOTCOM
888243 - 644697= 243546

Well done, Varun! Don't hesitate to post your resume to the google lab.
Your solution is right. M and E can be interganged, but they aren't equal. The answers are
777589 - 188103 = 589486
or
777589 - 188106 = 589483

As I see, the solution offered by Reid Judd is not correct.
See the last two digits of the smaller numbers.
E and M should both be different and not equal to 4.

Dimitre, can you please verify that your solution is same as mine?

mfg,
Varun Pant
India

The puzzle is interesting.
What I did was to transform it into
GOOGLE
+DOTCOM
-------
WWWDOT


Forming certain rules like since O + O and O+ T are both equal to W, and O + L = O, and since W is less than or equal to 9, after a thought this implies L= 0, and W is 5, 7 or 9 , and T is one greater than O and G+C is less than 9 and thus G is less than D.
Trial and error gives:

188103
+589486
-------
777589
or
777589 - 188103 = 589486

BTW, this was done using two sheets of paper, and my brain- not some program, although it should be interesting to write a generic algorithm to solve such problems.
Again, I did not keep a record of time, but it was short- ten- fifteen minutes.

Kind Regards,
Varun Pant
(India)

Google made an error in the puzzle. IMO different letters MUST mean different numbers. So M and E should not be equal or they should have assigned the same letter for both places. I meant interchange as M+E=T=E+M and I excluded that E=M. I considered them interchangeable coz they r at the last place in the numbers.
What do u think?

WWWDOT - GOOGLE = DOTCOM
555378 - 177104 = 378274

But, have you considered that Google might begin to have sentient thoughts? Having access to all of the worlds' knowledge, eventually it will grow in power until it becomes omniscient and there will be a great war between man and machines. Then Google will send a robot back in time to try to destory Sarah Connor and her son John who is predestined to lead the human resistance.

Just a thought,...

-- Reid Judd

> But how?

The very short answer is by trial and eror process.

Notice some basic properties (like L must most probably be zero, T is most probably O + 1, D+G <= 10, ... etc).

Then assign the other letters what's still left of the digits -- in many cases there will be conflicts so the solution space will get gradually more and more narrow.

Finally, for one of the substitution plans there's no conflict and it ia a real solution.

As it happens, this can be achieved in a short time.

Cheers,

Dimitre.

P.S.
Probably this is not important, but it helped me a lot to initially rewrite the problem as:

GOOGLE
+

DOTCOM
________

WWWDOT

Well, you rock. But how?? :)

Found one solution with pen and paper for about 10 minutes -- not sure if there isn't another solution.

Sending it to you by email.

Cheers,

Dimitre.

Leave a comment