Dieser Eintrag wurde am Dienstag, dem 20. Mai 2008 um 08:25 erstellt und ist folgenden Kategorien zugeordnet: Computer, Interessantes, Software Du kannst alle Aktivitäten zu diesem Eintrag über den RSS 2.0 feed verfolgen.
2 Responses to “(English) Google Treasure Hunt 2008 Question 2 Solution”
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
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
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
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