×

# a good set solve ?

 2 You missed the constraint that all elements should be in the range 1 to 500. answered 13 Jun, 19:13 7★algmyr 1.2k●13 accept rate: 37% welp, guess I need to pay more attention to constraint huh (13 Jun, 21:17) flaze072★
 2 Fibonacci grows very quickly, you probably want something that doesn't grow exponentially fast. This would be a problem even if the problem statement didn't state that numbers should be between 1 and 500 as the 100 Fibonacci number is $354224848179261915075$ and doesn't even fit inside of a ulong. A small hint: View Content answered 13 Jun, 19:37 934●2●10 accept rate: 42% gotcha, then all I need is to start it off with 10, or any number that is bigger than one edit : nvm, it is not that I can just start with numbers of any kind (13 Jun, 21:18) flaze072★ The important thing is to not start with small numbers. (13 Jun, 21:22) There is a more beautiful way to do it than that. One hint: parity (14 Jun, 02:27) algmyr7★ ok, nevermind, I decided to just output 400 until 500 and it works, yeah I guess I know why, because 400 + 401 is already 801 (14 Jun, 08:16) flaze072★ Great! Btw about Algmyr's hint, you could just have used odd numbers =p (14 Jun, 19:31) well...didn't think of that (15 Jun, 07:44) flaze072★ showing 5 of 6 show all
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×133
×8