Jump to Navigation

(English) Google Treasure Hunt 2008 Question 2 Solution

Leider ist der Eintrag nur auf English verfügbar.

2 Responses to “(English) Google Treasure Hunt 2008 Question 2 Solution”

  1. Jason:

    why do you use this?
    if(isset($c[$l])) {
    for($i=0;$i<strlen($c[$l]);$i++) {
    $result += $c[$l][$i];
    }
    return $result;
    }
    The sum of each digits of third line is to be found?
    And here, $r *= getsumlineoffile($file, 2);

    I haven’t check the answer, but what I understood from the question was to find the sum of line 3 from all files for first condition multiplied by sum of line 5 from all files for second condition

  2. Qian Qin:

    Looks like I didn’t read the question carefully enough. I corrected the solution a bit. Here’s the result of my script:

    Your question: 2 sums from 16572731202103087946.zip: line 1 in *mno*.pdf, line 4 in *pqr*.js
    Your answer: 4456274175
    Time received: 2008-05-20 19:21:00.414931 UTC

    Correct answer: 4456274175
    Your answer was: Correct