Problem 904

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
User avatar
wim59
Posts: 28
Joined: Mon Mar 27, 2023 3:35 am

Problem 904

Post by wim59 »

Excuse me, but was is alpha?
Image
raiden11
Posts: 5
Joined: Sat Aug 03, 2024 7:07 pm

Re: Problem 904

Post by raiden11 »

alpha is not related to the triangle. It can be any given angle (in degrees). And L can be any integer. Read till the last, you'll understand
User avatar
wim59
Posts: 28
Joined: Mon Mar 27, 2023 3:35 am

Re: Problem 904

Post by wim59 »

OK thanks for the clarification!
Image
mallensule
Posts: 2
Joined: Sat Nov 02, 2024 2:05 pm

Re: Problem 904

Post by mallensule »

Hello, Is there any extra known test case? My solution is correct for the test case F(10, 10^6), but not for the requested number.

I'm not sure if it is a precision problem, which it shouldn't as I am using long doubles (128-bit precision).
mallensule
Posts: 2
Joined: Sat Nov 02, 2024 2:05 pm

Re: Problem 904

Post by mallensule »

I managed to solve it :)

I tried with another (simpler) angle formula, and it worked.
Post Reply