Good evening, everyone.
In the course of the quarantine, nature has cleaned up so much that I came back to CF. Hello to those who don't know me, and sorry to others.
I want to introduce a few amendments to the gym section and add my contest there. I originally planned to host it on April 1st, but I was a bit late, so the contest will be half-joke, half-traditional.
You will be given from 6 to 8 tasks and from 2 to 3 hours. During the contest, you will be provided with the opportunity to help Mike, Rudolph, and some other good people.
The competition will be suitable for all divisions, genders, and races.
Of course, I would like to thank MikeMirzayanov for CF and Polygon, and also express my condolences to people who agreed to test the problems.
The winner will be awarded a valuable prize — an online certificate.
The contest will start on Jun/26/2020 18:35 (Moscow time), follow the link: contest link. Don't forget to set yourself a reminder! When the contest is over, I will post an editorial.
UPD1: Registration will open 6 hours before the contest
UPD2: Registration is open now! Contest is available for registration by the link above and in the gym
UPD3: IMPORTANT NOTE! If you have coach mode enabled — you have to disable it in gym to be able to register for contest
UPD4: One hour before contest!
UPD5: 10 minutes before contest!
UPD6: Contest has started!
UPD7: Thank you for all contestants! Editorial would be posted on the weekend
UPD8: Editorial is published. Also, I have forgotten to add some important tests to $$$G$$$, and some incorrect solutions got AC. Following best practices, it was decided to add new tests when the contest is over. However, to keep everything consistent, I did not rejudge any solutions.
Oh god damn it, I remember you
I apologize
Your account was registered two months ago
I have read history books about him.
The winner will be awarded a valuable prize — an online certificate.
Sarcastic?
А откуда будут взяты задачи контеста? ( просто интересно )
Any reason keeping the contest length unusually to 2 hours 28 minutes?
Urban dictionary: 228
Oh sorry, wrong account
Ok after trying B,I and vasya are in same condition!! LOL
So rage quit competitive programming like Vasya, lol
Well I guess now I am alone coz 34 people(till now) helped him!! LOL
Correlation between answers(you'll know when you know), Russian vulgarity, and unusual length of a contest- Sire, you have my respect!
Just realized the solution for the equation in question A was 228, this guy is a frickkin legend!
What the hell was test 2 in C?
Trash problem: The intended solution is "Anime is trash" (unpopular opinion).
For a while I doubted my sanity, forgot this is not an official contest :P
Why do you think it's unpopular?
How to solve problem B?
Do binary exponentiation, except instead of
a*1ll*b%m
usea*b%m
, where a and b are int.These are the two relevant articles:
English users had a disadvantage, since code on the Russian website had int. Implying that Vasya copy-pasted the code without realizing internally it needs to use long long.
So, this
binpow
"works":Can someone explain me solution for B? xD
thank u bredor
EDIT: no thank
Will you provide editorial?)
Sure, but tomorrow because it's late night in Bratsk
Why binpow solution doesn't work for B on python?
Because Vasya's bug was an overflow (with signed 32-bit integers), and Python's
int
does not overflow.Can anyone explain how to solve Problem C Anime?
Print $$$n$$$ ones lol
Thankyou Mustang98 for replying. Yes,n-times 1 got accepted. But why?
Because, all trash is trash and all anime is trash! It’s a joke, buddy
Yeah! Thanks, Buddy
How to solve "Listen to your Heart " ?
from equation we can see sqrt(x-3) It implies x is >=3. Start iterating from 3(value of x) to ... and put x in Equation. whenever L.H.S==R.H.S you got the answer. Don't forget to use Double
Or just use Desmos.
how to use it to solve equation?
It just occurred to me that Wolfram Alpha works just as well. Anyway, if you put in the equation and zoom out, there's a solution at x=228.
Thanks, Newtech66
Open bredor's profile and look at his hat
I think 228 is his Lucky Number.