Skip to content

Code Conundrum Mystery Cache

Hidden : 9/11/2016
Difficulty:
4.5 out of 5
Terrain:
2.5 out of 5

Size: Size:   micro (micro)

Join now to view geocache location details. It's free!

Watch

How Geocaching Works

Please note Use of geocaching.com services is subject to the terms and conditions in our disclaimer.

Geocache Description:

The cache is not at the published coordinates. The coordinates will be outputted by the programming code provided. The difficulty is intended for those who read through the code to work out the output. Although of course you can also execute it using an application of your choice to make it easier. Tweezers may be useful for extracting the log.


#include <iostream>
#include <string>
#include <math.h>
using namespace std;

int main()
{
    string coordinates = "N " + to_string(3 * 4 + 6 * 7) + " 0" + to_string((int)sqrt(49)) + ".";

    int x = 1;
    int y = -x;

    if (17 % 4 <= 1)
        x = 3;
    else if (11 - 7 == 4)
        x = 2;

    switch (x - y)
    {
        case -1: coordinates += "854"; break;
        case 0: coordinates += "920"; break;
        case 1: coordinates += "791"; break;
        case 2: coordinates += "766"; break;
        case 3: coordinates += "823"; break;
        case 4: coordinates += "811"; break;
        case 5: coordinates += "644"; break;
        default: coordinates += "807"; break;
    }
    coordinates += " W 000 " + to_string((int)((2 - 14) * -2 / 0.5)) + ".";

    int v = 0;
    for (int i = 1; i < 4; i++)
    {
        for (int j = 1; j <= i; j++)
            v += i * j;
    }
    coordinates += to_string(41 + 12 * v);

    cout << "The coordinates for the cache are: " << endl << coordinates << endl << endl;
    system("Pause");
    return 0;
}

 

Congratulations to marions27 for FTF.
Last cache check: 22 September 2024

Additional Hints (Decrypt)

[HIDE]: Ernpu hc.

Decryption Key

A|B|C|D|E|F|G|H|I|J|K|L|M
-------------------------
N|O|P|Q|R|S|T|U|V|W|X|Y|Z

(letter above equals below, and vice versa)