lmao

did you even bother reading my question at all?

I clearly stated this isn't a homework assignment. Let me repost it for you: This is a problem that was handed out to us during a programming contest that took place a couple days ago.

I'm not asking for other people's code which you compile, run, and observe but you don't learn ****.

I'm just looking for insight on how to tackle this problem. I've already written dozens of pages regarding various ways on how to solve this, but as I stated, I'm stuck.

Just because I don't post more letters doesnt mean that I'm not putting effort into it.

Thank you very much, have a nice day.