Page 5 of 6

Re: Problem 008

Posted: Thu Feb 26, 2015 11:33 am
by AndriiLastivka
Hey. I am confused on what is meant by 'adjacent' in this problem? Does it mean adjacent horizontally, vertically and diagoally?

Thanks

Re: Problem 008

Posted: Thu Feb 26, 2015 12:08 pm
by jaap
AndriiLastivka wrote:Hey. I am confused on what is meant by 'adjacent' in this problem? Does it mean adjacent horizontally, vertically and diagoally?

Thanks
It is one long 1000 digit number, so there is no vertically or diagonally adjacent. It is only split over several lines so that it fits on the screen.

Problem 008

Posted: Wed Jan 27, 2016 7:04 am
by programmer_
Can someone explain me briefly what the Problem 8 says?

Re: Problem 8

Posted: Wed Jan 27, 2016 8:33 am
by Georg
Find the greatest product of 13 consecutive digits in the 1000-digit number.

Re: Problem 008

Posted: Wed Jan 27, 2016 9:11 am
by hk
@programmer_:
If you'd read the topics in the pink box:
-you'd found that there already existed a topic for this problem
-you'd called your post "Problem 008" instead of "Problem 8"
Please make the work of the moderators as easy as possible and read and follow instructions.

Problem 8 gripe - PE ADMINS, please address issue!

Posted: Thu Apr 28, 2016 12:43 am
by horcle_buzz
To the admins, please read my comment on the forum for Project 8 solutions. This is STILL unclear, and I was able to FINALLY solve it via a whim I had. The problem is POORLY presented and confusing for such a simple solution.

Re: Problem 8 gripe - PE ADMINS, please address issue!

Posted: Thu Apr 28, 2016 1:04 am
by mpiotte
horcle_buzz wrote:To the admins, please read my comment on the forum for Project 8 solutions. This is STILL unclear, and I was able to FINALLY solve it via a whim I had. The problem is POORLY presented and confusing for such a simple solution.
Please don't create a new topic when one already exist for a problem.
It you had any doubt about the meaning of the question, I'm sure the existing topic here would have resolved them.

Problem 008

Posted: Wed Aug 22, 2018 7:28 pm
by jumbledwords
I've found that a solution for Problem 8 that produces a larger product than the answer the problem accepts as correct. The 13 digits I've found are adjacent.

Re: Problem 008

Posted: Wed Aug 22, 2018 8:50 pm
by Animus
PM sent to jumbledwords.
edit: Question solved.

Re: Problem 008

Posted: Thu Nov 15, 2018 1:47 pm
by Utsav_22
I am unable to solve the question 8 and 11 properly using C language

Re: Problem 008

Posted: Thu Nov 15, 2018 4:11 pm
by rayfil
This seems to leave you with at least two choices if you want to continue enjoying solving problems on Project Euler. i.e.:

A. Continue learning how to use the C programming language. Many other participants have already succeeded solving those problems using that language.
B. Start learning some other programming language. However, you may reach the same dilemma if you don't become sufficiently proficient in that other language.

Re: Problem 008

Posted: Tue Feb 26, 2019 10:12 pm
by Freiling

The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.

73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866
70172427121883998797908792274921901699720888093776
65727333001053367881220235421809751254540594752243
52584907711670556013604839586446706324415722155397
53697817977846174064955149290862569321978468622482
83972241375657056057490261407972968652414535100474
82166370484403199890008895243450658541227588666881
16427171479924442928230863465674813919123162824586
17866458359124566529476545682848912883142607690042
24219022671055626321111109370544217506941658960408
07198403850962455444362981230987879927244284909188
84580156166097919133875499200524063689912560717606
05886116467109405077541002256983155200055935729725
71636269561882670428252483600823257530420752963450

Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?
Since 9989 appear consecutively, I am guessing that's what they mean. Finding for adjacent numbers would be far harder. Am I correct in my interpretation?

Re: Problem 008

Posted: Tue Feb 26, 2019 11:48 pm
by kenbrooker
Absotively, although, without checking, 9989 may also appear elsewhere (or even 9999)
"adjacently," only because the 1000-digit number is not presented as a number,
"consecutively" and "contiguously(?)"...

IOWords, IMHOpinion, your rewording is...
Superior Freiling
:)

I guess an Administrator may move us to
Clarifications on PE Problems?

Re: Problem 008

Posted: Wed Feb 27, 2019 10:59 am
by sjhillier
Thanks, post moved as suggested.

In terms of an answer, your alternative wording might indeed be better, but personally I'm reluctant to change the wording of a problem that has been around for so long. The older the problem, the more the wording should stand I feel, unless it really is misleading, but others may feel differently.

Re: Problem 008

Posted: Wed Feb 27, 2019 6:39 pm
by kenbrooker
Thanks sjhillier and I agree with your feeling that the wording is not necessarily misleading
if one keeps in mind that the problem refers to a "number",
not to a two-dimensional array...


Or, as jaap posted, 4 years ago,
to the nearest day --

Re: Problem 008
Post by jaap » Thu Feb 26, 2015 4:08 am

AndriiLastivka wrote:
Hey. I am confused on what is meant by 'adjacent' in this problem? Does it mean adjacent horizontally, vertically and diagoally?
Thanks

It is one long 1000 digit number, so there is no vertically or diagonally adjacent. It is only split over several lines so that it fits on the screen.

Re: Problem 008

Posted: Tue Mar 05, 2019 6:29 pm
by Freiling
Ah, I see. I was unable to find that when searching. My apologies for the redundant post.

Re: Problem 008

Posted: Wed Mar 06, 2019 8:35 pm
by kenbrooker
I am just as "guilty" by finding jaap's post last instead of in the first place...

Re: Problem 008

Posted: Tue Sep 03, 2019 8:25 pm
by funk_r
Hello Admins,

I have to state that the wording of this quest misled me too.
Adjacent numbers in my understanding are something like this 3->4->5 and vice versa.
(structural neighborhood) but you ask for positional neighborhood.
Choose any position in the number take the next 13 consecutive digit. Find the position giving the maximum.

Re: Problem 008

Posted: Tue Sep 03, 2019 9:12 pm
by hk
The problem isn't about adjacent numbers but about adjacent digits.

Re: Problem 008

Posted: Wed May 13, 2020 8:06 pm
by SawyerWest
For some reason my program is finding the correct answer for 1, 2, 3, and 4 adjacent digits (I've tested) but for some reason not 13 digits (although it looks fine)? Am I allowed to post results for input != 13 to discuss?