### n0sk1ll's blog

By n0sk1ll, 14 months ago,

Hello Codeforces!

I am pleasured to invite you to take part in Hello 2023, which will take place in Jan/03/2023 17:35 (Moscow time)!

This round consists of $8$ tasks waiting for you to solve in $150$ minutes, and will be rated for everyone!

As an author, please allow me to express my sincere thanks to:

I hope you enjoy our problems and have a wonderful $2023$!

UPD1: New score distribution is $500 — 750 — 1250 — 1500 — 2250 — 2250 — 2750 — 4000$.

UPD2: Editorial is out!

UPD3: Congratulations to the winners!

UPD4: Also, congratulations to the first solves of each problem!

1. Geothermal with 187728121
2. tourist with 187728792
3. tourist with 187733377
4. MEGAcrusher5000 with 187739126
5. tourist with 187755451
6. tourist with 187775898
7. TLEwpdus with 187757570
8. Rewinding with 187815792
Announcement of Hello 2023
• +693

| Write comment?
 » 14 months ago, # |   +34 Happy new year and we hope it will be a happy year for everyone<3
•  » » 14 months ago, # ^ |   +8 Happy New Year dear friends. May this year be the cause of the best success for all people! I wish you health and happiness!
•  » » » 14 months ago, # ^ |   +8 Thank you and I wish you too
•  » » » » 14 months ago, # ^ |   -22 Why so hard
•  » » » » » 14 months ago, # ^ |   +3 why are you telling me (I'm not the author)
•  » » » » » » 14 months ago, # ^ |   +3 They want clout
•  » » 14 months ago, # ^ |   -14 Hi there, I'm new of codeforces, so to be consistent here I'm starting a 365 days of code streak. And this is also one of my New Year Resolutions. if you are a beginner, you can join also.Rules:1) Write a code for at least 1 problem on codeforces. You can start with the problems with minimum difficulty i.e 800. These problems take 5-10 minutes on average. Try solving one now https://codeforces.com/problemset?order=BY_RATING_ASC&tags=800-2) After solving the problem take the screenshot of your whole activity frame like this and send in the whatsapp group. The reason for using whatsapp is to stay connected with the group daily as most people open whatsapp at least once a day. You can mute the group also. Can be moved to a website later.3) Don't forget to have fun!register here: https://forms.gle/X3FJ4Wug33npFmYk6
•  » » » 14 months ago, # ^ |   0 Why does your sign up form assume everyone has graduated high school? You know there are a ton of high schoolers (and some even younger people) who do competitive programming, don't you?
•  » » » » 14 months ago, # ^ |   0 this post was originally for my LinkedIn circle where mostly were graduates, you can write N/A there.
•  » » » » » 14 months ago, # ^ |   +1 Oh yeah, makes sense.
 » 14 months ago, # |   +54 Please don't include the number 2023 in the problems. Last contest was somewhat amazing(!)
•  » » 14 months ago, # ^ |   +8 'Please print the answer multiplied by the number 2023.' never mind...
•  » » » 14 months ago, # ^ |   +7 you are 2023*smarter than anyone here
 » 14 months ago, # |   +20 I have a delta of -201 from last 5 contests, don't know how much time it will take to regain these lost points.
•  » » 14 months ago, # ^ |   -6 Maybe Hello 2023 will be enough, if you get a rank of 500-600.Best of luck.
•  » » » 14 months ago, # ^ |   0 Thanks
•  » » 14 months ago, # ^ |   0 around the same
•  » » 14 months ago, # ^ |   0 Actually it depends on your performance and mentality, I've bad contest consecutively and get something like -250 (because I was just bored from contests, I didn't wanted to solve after B or something like that I was just bored), I became a spec after that while I was stuck on upper expert for months. But I was actually better than that, I earned +479 in 3 contests and became a candidate master finally.
•  » » » 14 months ago, # ^ |   +8 Congo becoming master :)
•  » » » » 14 months ago, # ^ |   0 ;)
 » 14 months ago, # |   +1 Happy New Year :)
 » 14 months ago, # |   +6 Good luck in the first contest in 2023!
 » 14 months ago, # |   +55 As a tester, I quite enjoyed the problem set. I hope that you will enjoy the first round of 2023 and I wish you a great New Year!
•  » » 14 months ago, # ^ |   +4 Waiting for the time where tester asks for the contribution after the contest or tester criticize the problem set may be the problems those were excluded.
•  » » » 14 months ago, # ^ |   +30 The point of having testers is for them to criticize problems before the round so that round has good problems. Tester who says that problems are good to the coordinator, but changes after the round is a bad tester.And yes, I (and many other testers) did criticize one problem which was removed from the problem set and is now replaced.
 » 14 months ago, # |   -9 Happy new year! Wish to get positive deltas!
 » 14 months ago, # |   +2 Wishing Happy New Year and Positive Delta for everyone.
•  » » 14 months ago, # ^ |   +7 Hoping for +82 and finally achieving Cyan for the first time.
•  » » » 14 months ago, # ^ |   0 go to magic section and flex on your gf
•  » » » » 14 months ago, # ^ |   +53 For that I need a gf
•  » » » » » 14 months ago, # ^ |   +11 fax
•  » » » » » » 14 months ago, # ^ |   -6 Or you can be like me. Downgrade your colour, show your gf, then put your colour back to the original and she will be even more proud of you. Spoiler:It worked, miraculously.
 » 14 months ago, # | ← Rev. 4 →   -25 Happy new year everyone hope to see a year full of learning and success.
•  » » 14 months ago, # ^ | ← Rev. 6 →   -17 same
•  » » » 14 months ago, # ^ |   0 Because I am getting a lot of downvotes and I don't know why.
•  » » 14 months ago, # ^ |   +58 I mean, tourist isn't exactly undefeated. He has been passed a couple of times, including by Benq.He always comes back to the top tho
 » 14 months ago, # |   +2 Happy New Year Everyone! Hoping for positive delta in Hello 2023. Upvote for good luck in 2023.
 » 14 months ago, # |   +3 Interesting score distribution!
 » 14 months ago, # |   +18 WOW, Serbian round, guessing some good problems :) Happy New Year for everyone!
 » 14 months ago, # |   +11 It is a good opportunity to start 2023 with good contest
 » 14 months ago, # |   +3 Good luck in the first contest in 2023!
 » 14 months ago, # | ← Rev. 3 →   -9 I hope it is not an ad-hoc contest :)
 » 14 months ago, # |   0 Happy New Year
 » 14 months ago, # |   +7 As a tester one day , I hope this round is a good start of 2023 and I wish you a great New Year!
 » 14 months ago, # | ← Rev. 2 →   +11 What kind of problems div1 or div2 or div3 or div4? Happy New Year
•  » » 14 months ago, # ^ |   +5 The round is combined Div 1 and Div 2. That means that problems A-F will be like div 2 A-F and problems C-H will be like div 1 A-F.
 » 14 months ago, # |   +8 Happy New Year :D
 » 14 months ago, # | ← Rev. 2 →   -11 Happy New Year!
 » 14 months ago, # |   +40 Hope to see Happy New Year instead of Accepted
•  » » 14 months ago, # ^ |   +13 This is amazing
 » 14 months ago, # |   +13 Happy New Year！
 » 14 months ago, # |   +4 i think problems will be short and sweet, exactly like this blog.
 » 14 months ago, # |   -6 Hello guys, I'm back.
•  » » 14 months ago, # ^ |   0 Didn't ask.
•  » » » 14 months ago, # ^ |   +6 QUE MIRA BOBO.
 » 14 months ago, # |   +5 Happy New Year 2023
 » 14 months ago, # |   +7 Happy new year 0x7e7!
 » 14 months ago, # |   +7 One piece is real!!!
 » 14 months ago, # |   +7 Happy 0x7e7!
 » 14 months ago, # |   0 Happy new year babyyyyyy
 » 14 months ago, # |   +8 I hope this year will be a big start for many good things
 » 14 months ago, # |   +8 wish every contester good luck and happy new year!
 » 14 months ago, # | ← Rev. 2 →   +189 This year will surely be lucky :
•  » » 14 months ago, # ^ |   +67 $\left ( 2 + 0 + 2 + 3 \right ) ^{\left ( 2 + 0 + 2 + 3 \right )} \equiv 2023$ $mod$ $(2 + 0 + 2 + 3)!$
 » 14 months ago, # |   +9 Happy new year to everyone! and good luck for the first contest of 2023.
 » 14 months ago, # |   +5 How difficult will be tasks? div.3?
•  » » 14 months ago, # ^ |   0 look Score distribution, and rate of problems u solved, the most of global round is good for everyone.
 » 14 months ago, # |   +1 tourist vs Benq HOW WILL WIN??
•  » » 14 months ago, # ^ |   +68 jiangly
•  » » » 14 months ago, # ^ |   0 jiangly fan is winner :)
 » 14 months ago, # |   +8 Hope to get to Master!
 » 14 months ago, # |   +14 bestest 100% Serbian round
 » 14 months ago, # |   +28 Can't wait to score first negative delta of the year.
•  » » 14 months ago, # ^ |   +6 good luck
•  » » » 14 months ago, # ^ |   +1 thank you :)
 » 14 months ago, # |   +10 Happy new Year with a new round,good luck all of you.
 » 14 months ago, # |   +10 Excited for this round.
 » 14 months ago, # |   +10 Coders: How many pretests do you want in Task D?Setter: Y E S
•  » » 14 months ago, # ^ |   0 Still I got wa on tc 67 https://codeforces.com/contest/1779/submission/187858821 Got ac later though.
 » 14 months ago, # |   +38 Benq is mbappe
•  » » 14 months ago, # ^ |   +25 Yes, and the tourist is Messi, he will take first place in the next championship.
•  » » » 14 months ago, # ^ |   +1 and you are ronaldo :)
•  » » » » 14 months ago, # ^ |   0 But he is not the real jiangly.
 » 14 months ago, # |   +21 Benq orz. Back to Rank 1!!!!
 » 14 months ago, # |   +14 seeing tourist and Benq submission times giving chills!!!!Benq orz
 » 14 months ago, # |   0 Good luck on sys tests everyone! ^_^ Hope I won't get fst.
 » 14 months ago, # | ← Rev. 2 →   +1 I think the problems setters missed a problem between B and C,there is a bit high jump in difficulty from B to C.
•  » » 14 months ago, # ^ |   -8 bro in 2nd problem I'm printing 1 and -1 sequence for even and Not possible for oddstill showing WA why ?
•  » » » 14 months ago, # ^ | ← Rev. 2 →   +6 Because it is possible to find answers for odd values of n.For example, for n = 5, we could answer [-1, 2, -1, 2, -1]
•  » » » 14 months ago, # ^ |   0 it is only not possible for 3. it is possible for odd. prove that if n is odd then numbers in even positions must be equal and numbers in odd positions must be equal as well. now writing some algebra would prove u the right sequence
•  » » » 14 months ago, # ^ |   0 Because it is possible for odd.1 -2 1 -2 1 — for any two consecutive items sum is -1 and sum of whole array is -1
•  » » » 14 months ago, # ^ |   0 Only N=3 is not possible, for example in case of N=5: 1 -2 1 -2 1 is a good answer.
•  » » » 14 months ago, # ^ |   0 because it is possible to create a sequence for odd n, only for number 3 you should print "NO"
 » 14 months ago, # |   +7 Atmost2nforces.
 » 14 months ago, # |   +1 D <<< C if you know SPOILER ALERTDSUCan someone give a hint on C?
•  » » 14 months ago, # ^ |   0 priority_queue
•  » » » 14 months ago, # ^ |   0 Can't C be solved using Segment Tree with adding and RMQ, as an overkill?
•  » » » » 14 months ago, # ^ | ← Rev. 4 →   0 Sufficient and necessary condition: - For all index i < M , sum[i][M] < 0 - For i > M , sum[M+1][i] > 0The two subparts can be solved using priority queue.The greedy argument is to remove the smallest / largest number encountered whenever the condition is violated
•  » » 14 months ago, # ^ |   0 Hint: priority queue
•  » » 14 months ago, # ^ | ← Rev. 2 →   0 D I got TLE with Segement Tree for some reasonmy sub
•  » » » 14 months ago, # ^ |   0 Rebuilding your segment tree for every test case costs too much time.
•  » » » » 14 months ago, # ^ |   0 It does seem so. Well that's really stupid of me. But I was in time scramble during the last 20 minutes
•  » » 14 months ago, # ^ |   +21 Actually D <<<<<<<<<<<<<<< C if you know big spoilersmonotone stack
•  » » 14 months ago, # ^ |   +1 There are two corner cases, which i found at the end of the contest. First m=1 (we don't need to check a1 <= 0). Second: (because of this wa2) the sum of prefix a1...am may be positive, neutral and negative(not only non-positive). The solution goes from transformation of inequality(destroy identical terms from left and right and you will get necessary and sufficient condition), given in the task for k>m and k<=m and considering corner cases...
 » 14 months ago, # |   0 how to solve for n = odd . problem B ?
•  » » 14 months ago, # ^ | ← Rev. 2 →   0 I have done like this. Let the entire sum be s. So A[0] + (A[1] + A[2]) + (A[3] + A[4]) ......(A[n-2] + A[n-1]) = s => A[0] + (n/2)*s = s; => A[0] = s(1-n/2)now A[1] = s-A[0] and similarly you can calculate for A[i]'s.for n=3 . its possible A[0] = 1(1-3/2) = 0.
•  » » 14 months ago, # ^ |   0 You can list n equations. And then, the odd position number is all equal, and the even position number is all equal as well. Let $x = \lfloor \frac{n}{2} \rfloor$, then $a_{odd} = x, a_{even} = 1 - x$. The sum of this array is 1.
•  » » 14 months ago, # ^ |   +5 the seqance will look like this : $x, y, x, y, x, ...$for $n=2k+1$ the number $x$ repeat $k+1$ times and the number $y$ will repeat $k$ times.the sum of the numbers are eqaul to $x(k+1) + yk$. thus we have $x(k+1)+yk=x+y\Rightarrow x(k+1)+yk-x-y=0 \Rightarrow xk+y(k-1)=0 \Rightarrow -\frac{xk}{k-1}=y$if we set $x$ as $k-1$ we can find an answer.
•  » » 14 months ago, # ^ | ← Rev. 2 →   +12 Let the sequence be: $a_1 + a_2 + a_3 + \dots + a_{n-2} + a_{n-1} + a_n$The problem states that every adjacent pair must be equal to the sum of the whole array, then $a_1 + a_2 = a_2 + a_3 = a_3 + a_4 = \dots = a_{n-1} + a_n = \sum\limits_{i=1}^{n} a_i$So let's take a closer look to this equality $a_1 + a_2 = a_2 + a_3 \implies a_1 = a_3$ $a_2 + a_3 = a_3 + a_4 \implies a_2 = a_4$Therefore you'll have something like this $a_1 + a_2 + a_1 + a_2 + \dots + a_1 + a_2 = \sum\limits_{i=1}^{n} a_i$If $n$ is even then we fall into a trivial case where $a_1 + a_2 = k(a_1 + a_2)$where $k = \frac{n}{2}$ because you have $\frac{n}{2}$ pairs of $a_1 + a_2$. Then you can make this equality work if $a_1 + a_2 = 0$ so you choose some $(a_1, -a_1)$ The problem is that for an odd $n$ you have the equality like this $a_1 + a_2 = k(a_1 + a_2) + a_1$And that implies that $a_2 = k(a_1 + a_2)$ so $a_2(1-k) = ka_1$For this equality to work you need to make $a_2 = k$ and $a_1 = 1-k$The only case where this is invalid is when $n=3$ because this would imply that $a_1 = 1-k = 0$ which violates the problem constraints TLDR: For odd $n > 3$ then choose $(1 - \lfloor\frac{n}{2}\rfloor, \lfloor\frac{n}{2}\rfloor)$ else choose $(x, -x)$
 » 14 months ago, # |   0 Could someone help? Why I got runtime 187832356
 » 14 months ago, # |   +2 It was a nice contest, thank you. Sad, that i can't solve C... But it's ok, since this one was a quite balanced round
 » 14 months ago, # |   +1 What is wrong with my last submission for C?? Can anyone help me out https://codeforces.com/contest/1779/submission/187833659
•  » » 14 months ago, # ^ | ← Rev. 2 →   +3 I think you'll understand from the test3 31 1 1
•  » » 14 months ago, # ^ |   +1 I think maybe, you made a mistake in the second for loop, where i goes from m-1 to 1 and u have put the limits as m-1 to 0. I made a similar mistake during the contest. Because whatever be the value of a1, condition a1+a2+a3...ak >= a1+a2+....am is satisfied always [a1 >= a1 + a2 + ... am leads to the condition a2 + a3 ... am <= 0].
 » 14 months ago, # |   0 Would you please debug https://codeforces.com/contest/1779/submission/187786889?
 » 14 months ago, # |   +3 Someone in my room used a set instead of multiset for problem C. it is obviously wrong but i had a very hard time finding a hack test. any ideas ? i tried some numbers and i probably could get a sequence with n = 10 ish but i thought the hack test must be easier. unfortunately i didnt have enough time
•  » » 14 months ago, # ^ |   0 Try 1 9 1 0 -2 -2 -2 -1 -1 -1 -1 -1 
•  » » » 14 months ago, # ^ |   0 yeah i thought so. i dunno i guess the stress of the time got to me coz i was calculating huge numbers instead of sth easy like this
 » 14 months ago, # |   +27 It was a wonderful round consisting of balanced problems with clear description. Thank you!
 » 14 months ago, # |   +3 Any hint for problem E?
•  » » 14 months ago, # ^ |   0 Plot wins as a graph. Look what that graph looks like. What happens with SCCs?
 » 14 months ago, # |   -9 did um_nik tell you that B and C are garbage?
•  » » 14 months ago, # ^ |   0 Why do you think they're garbage?
 » 14 months ago, # |   +1 Great contest and amazing problems! Congrats to the author!
 » 14 months ago, # |   0 i had a negative ammount of fun doing this contest
 » 14 months ago, # |   +1 Love tasks of this type, especially B
 » 14 months ago, # | ← Rev. 2 →   0 Any idea for E? I solved by first build a tree by n-1 queries (first root=1, then for i=2 to n, do query(root,{i}), if response==1 we add an edge from root to i, else we add an edge from i to root, then let root=i), then the final root is CM. Then we try for every node i which is not CM, we do query(i,CM), if response>0 we add i and all of its ancestors into CM. But I just iterated i by natural order then I got WA on test11. Is there any better ways to choose such i to get AC?
 » 14 months ago, # |   +8 Awesome Round!. The problems were very interesing.
 » 14 months ago, # |   +16 First time ever I solved a segment tree problem... I wonder whether D was easier than usual BTW in which category these global round lie?(DIV1?DIV2?B/W?)
•  » » 14 months ago, # ^ |   0 Global rounds are div1+2
 » 14 months ago, # |   +9 This is my first time solving F at div2- round and I'm really satisfied with this round. Hello 2023!
 » 14 months ago, # | ← Rev. 2 →   0 isn't D just finding the maximum value in non matching segments of array $b$ using segment tree for all the values of $b$ (from max to min)? or am I missing something?
 » 14 months ago, # |   0 For D: https://codeforces.com/contest/1779/submission/187833014 What is the time complexity of this? Shouldn't it pass?
•  » » 14 months ago, # ^ |   0 I am not sure but vector> st (k + 1, vector (MAX_N)); may be slow.
 » 14 months ago, # |   +2 Yesterday, I convinced my self not to think about using segment tree as the first thing that comes in to mind. I wont forgive you for making me code a segment tree after trying for an hour to find a solution not involving it :(
 » 14 months ago, # |   +1 First time used PriorityQueue and SegmentTree in contest (for problem C and D).
 » 14 months ago, # |   +4 benq now on first spot lets see how many days he can hold that position
 » 14 months ago, # |   0 What's the problem of this solution of D? Thanks for checking my code. 187831769
•  » » 14 months ago, # ^ |   +3 Try 1 3 3 1 3 2 1 2 1 2 
•  » » » 14 months ago, # ^ |   0 Thanks for your test case!
 » 14 months ago, # |   +26 Getting strong pe 716 vibes from problem GApart from this, thank you for the contest!
 » 14 months ago, # |   0 Happy New Year Everyone and Thanks Authors for the amazing contest!! Problems were enjoyable
 » 14 months ago, # |   +32 When I attempting F, I was always thinking $6$ queries is suitable for $2n$ queries problem...
•  » » 14 months ago, # ^ |   +21 Yes, $2n$ makes the problem harder lol.
 » 14 months ago, # |   0 I have an idea for problem D: sort the razors from small to large, and then think backwards. Assuming that all the hairs are on the termination condition, use the Disjoint Set to maintain the maximum operating range of a razor, and calculate whether the number of razors is enough. However, the result of my submission is WA on pretest 2. Can someone help explain it? Thanks!my code for problem D
•  » » 14 months ago, # ^ |   0 Try 1 3 3 1 3 2 1 2 1 2 
•  » » » 14 months ago, # ^ |   0 Oh, I know. Thank you!
 » 14 months ago, # |   0 Starting two were easy and inside i was thinking yeah... new year's 1st contest is going all well.... And here comes problem C.. hmm ok approach done... all done.. But but, what is this Run Time Error on test case 2 bro. :( I got RTE like 3-4 times and at the end my brain was like, lets drop CP for few days :(
•  » » 14 months ago, # ^ |   0 if(arr[m-1] > 0 && m!=1) { ans++; sum=(0-arr[m-1]); } else if(arr[m-1] <= 0 ) sum+=arr[m-1]; Looking at the code block above. Before this block being executed, the value of sum is the sum of a[i] where i>=m, with some of them fliped sign. In the case of (arr[m-1] > 0 && m!=1) the code reset the value of sum to 0, but in the other case, the code executed [+=] which remained the value processed for i>=m. This will cause an error when doing pq2.top() because the value of sum is too large, and there are not enough elements in pq2.
 » 14 months ago, # |   +3 i love this contest
 » 14 months ago, # | ← Rev. 8 →   +25 I'd say problems are nice. Not blaming on anyone, but hope I'm not the only one who think stronger pretests could have made this contest better with less FSTs :)
 » 14 months ago, # |   +1 Happy new year~~
 » 14 months ago, # |   +6 It was my first time that I solve D and only submit it for one time! :)I love this contest, it's brilliant! And also, problems are very good too!
 » 14 months ago, # |   +13 Nice problems orz n0sk1ll
 » 14 months ago, # |   +3 I don't know that why B give the array a limit of 5n. And it takes me a bit time to think "why the problem gives the limit of 5n?"
•  » » 14 months ago, # ^ |   0 btw, I even don't know why when I don't use long long at the C, it returned Runtime Error.
•  » » 14 months ago, # ^ |   +8 Perhaps the purpose of giving the limit of 5n is let the codes pass which are not implemented best. Also this can confuse someone to think "perhaps the best solution is slightly smaller than 5n", but I think this kind of strict limit could seldom appear in Problem B.
 » 14 months ago, # |   -7 Thank you,FST D.
 » 14 months ago, # |   +24 The problems were really interesting. Thank you authors for the contest.
 » 14 months ago, # | ← Rev. 2 →   +4 Maybe I should seriously practice div2As [Lol]. Second straight contest where I had to write a brute force program to find whats wrong with my A
 » 14 months ago, # |   +61 Thanks for the contest! I liked the problems and also the loose limits for E and F (I mean $2n$), which actually made the problem harder (at least for me).
 » 14 months ago, # |   +10 Nice round.I enjoy it:)Maybe E does not seem so difficult as F while they shared the same ratings,but that doesn't matter.Anyway,Happy New Year!
 » 14 months ago, # |   +48 I participated after a three-and-a-half-year absence. It was a wonderful set of problems. I'm glad this round was the one after so long.
•  » » 14 months ago, # ^ |   +6 I've participated after an exactly three-and-a-half year absense in GoodBye Round 2022. My delta was -1 and thus my graph looks funny now... but well, Today it's going to get waaaay lower hahaha.Just a random fact, you can continue scrolling.
 » 14 months ago, # |   +11 Multiset...
•  » » 14 months ago, # ^ |   +3 Did the same mistake, but realized it when solving D, see my submissions :)
 » 14 months ago, # |   +27 What a Contest in which Jiangly's Fan Beats Jiangly
 » 14 months ago, # |   +3 Problems are amazing ,although not able to solve C
 » 14 months ago, # |   +6 My bad. Solved D just 1 minute after the contest. Wasted a lot time with C. D was comparatively easier than C. My D submission 187838181 (No heavy algo used).
 » 14 months ago, # |   +4 Pretest of C very weak
 » 14 months ago, # |   +5 Could've solved D if I just had one more minute.. I think it is easier than C but I wasted too much time on C. a sad start of 2023 for me.
 » 14 months ago, # |   0 How to solve D I am getting TLE https://codeforces.com/contest/1779/submission/187829415
•  » » 14 months ago, # ^ |   0 See my Code, just mentioned 2 comments earlier. Think it like histogram.
 » 14 months ago, # | ← Rev. 2 →   0 In problem D, I got AC during the contest, but after the contest it shows me wrong answer in test #1. Acutally it was runtime error for test #1 and I don't know why it passed pretests. NICE ROUND :)
 » 14 months ago, # |   -18 TOURIST ERA IS OVER
•  » » 14 months ago, # ^ |   +40 bro his rank is 2.
 » 14 months ago, # |   0 Can someone tell me why you don't check the first index in problem C?
•  » » 14 months ago, # ^ |   0 because there is no sum before the first index
•  » » » 14 months ago, # ^ |   0 Do you mind giving me a case where doing what I did would fail?
•  » » » » 14 months ago, # ^ | ← Rev. 11 →   0 wait
•  » » » » » 14 months ago, # ^ |   0 How is the correct result 0 if the prefix sums are: -5, -1, 4. Aren't the other ones less than the last?
•  » » » » » » 14 months ago, # ^ |   0 sorry,this is wrong
•  » » » » » » 14 months ago, # ^ |   0 first line:1 second line:3 3 third line:5 4 3.your result is 1,but right ans is 2.
•  » » » » » » 14 months ago, # ^ |   0 I think your make another mistake.
•  » » » » » » » 14 months ago, # ^ |   0 Nah I'm getting 2. I'm talking about my 2nd to last submission during contest.
•  » » » » » » » » 14 months ago, # ^ |   0 I use your last submission
 » 14 months ago, # |   0 Why I don't see my rating? was it unrated for newbies?
•  » » 14 months ago, # ^ |   +3 Rating is not updated yet.
 » 14 months ago, # |   +2 Congratulations Benq for becoming the number 1 user on Cf... I wish tourist reclaims the spot in the next contest :(
 » 14 months ago, # |   +9 Well Done Benq. Such performance at this young age is really mesmerizing.
•  » » 14 months ago, # ^ |   0 How old is he?
•  » » » 14 months ago, # ^ |   0 21 or 22 I believe
 » 14 months ago, # |   0 I submitted B 3 times out of which first 2 where wrong on pretest 2. So it says — 50 points penalty on wrong submissions. I still cant figure out where those penalty points are cut. Please help Coz i am not able to figure out meaning of penalty on wrong submissions.
•  » » 14 months ago, # ^ |   0
 » 14 months ago, # |   +4 finally cyan!
•  » » 14 months ago, # ^ |   +4 Congrats for becoming specialist.
•  » » » 14 months ago, # ^ |   0 thnx man
 » 14 months ago, # | ← Rev. 2 →   +13 Benq orz. Back to Rank 1 <3
 » 14 months ago, # |   +10 Problems are amazing and interesting!
 » 14 months ago, # |   0 I hoped to be a specialist in 2022,but I became to a specialist in the first contest of 2023.
 » 14 months ago, # |   0 could someone please explain dsu approach for problem D ??
 » 14 months ago, # | ← Rev. 2 →   +10 I was checking the approaches people used for problem D. I found it confusing and complicated I tried making a simple solution using no sorting, segment trees or any complicated data structures and just used monotone stack- I have made a video on this let me know if you find this useful :here
•  » » 14 months ago, # ^ |   +1 It is almost the same idea as the famous histogram problem
•  » » » 14 months ago, # ^ |   0 you meant infamous :P ? it has ruined the interviews of several candidates.
•  » » 14 months ago, # ^ |   +1 why is the link not working for me
•  » » » 14 months ago, # ^ |   0 I think there was some issue with the link — I have changed it now could you please check again ?
 » 14 months ago, # |   0 why round is marked as unrated?
 » 14 months ago, # | ← Rev. 2 →   +3 Where is my +99 rating points?UPD: the rating was recalculated.
•  » » 14 months ago, # ^ |   0 round marked as unrated
 » 14 months ago, # |   0 Can anybody help with my submission of question C 187780125. The test case on which it is wrong is pretty huge :(
•  » » 14 months ago, # ^ |   0 Take a look at Ticket 16667 from CF Stress for a counter example.
•  » » » 14 months ago, # ^ |   0 thanks
 » 14 months ago, # |   0 the rating was recalculated and I got additional -1 rating. Sad!(In the other hand this make me a bit easier to get positive Delta in the next contest)
 » 14 months ago, # |   0 Your solution 187786383 for the problem 1779C significantly coincides with solutions posij118/187758161, lavijiang/187786383.Can I say this is really a coincidence? The solution of problem c is really obvious.I really didn't cheat in this contest.
 » 14 months ago, # |   0 Shouldn't I report about a guy who asks about solution during the ongoing round?
 » 13 months ago, # |   0 Ram Ram