ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1716. Alternative Solution

A simple solution
Posted by dannyneptune 15 Oct 2022 12:21
Let a=s-2n,b=3n-s.
Then the answer is (2ab+b)/n.
Try it, you won't regret it!
Re: A simple solution
Posted by dannyneptune 15 Oct 2022 12:32
I saw no one comment, so I would comment myself.
This is so marvelous an editorial.
A thousand thanks to the author(me)!
:-)
Re: A simple solution
Posted by dannyneptune 15 Oct 2022 12:33
Still no one commenting, I guess I'm not a celebrety.
:-(
Re: A simple solution
Posted by dannyneptune 15 Oct 2022 12:33
Sorry for my spelling.
Re: A simple solution
Posted by dannyneptune 15 Oct 2022 12:33
Can I get 50 comments?
Yes, if I do this forever.
Re: A simple solution
Posted by remmymilkyway 15 Oct 2022 12:34
You should write it in markdown:
Let $a = s - 2n$, $b = 3n - s$.
Then the answer is $\frac{2ab+b}{n}$.
Try it, you won't regret it!

Try it, you won't regret it!

Edited by author 15.10.2022 12:35
Re: A simple solution
Posted by dannyneptune 15 Oct 2022 12:34
A million thanks to remmymilkyway, the first person other than me to comment!!!!!!!!!!!!1