Комментарии
На GOyAT → Codeforces Site not working on WIFI network, 5 лет назад
0

same, I thought it was wifi problem so I had a thought getting changed my wifi provider

На awoo → Educational Codeforces Round 112 Editorial, 5 лет назад
0

how to do d using dp?

На awoo → Educational Codeforces Round 112 Editorial, 5 лет назад
0

how to do d using dp ?

На Bazoka13 → Codeforces Round #738 Editorial, 5 лет назад
-14

you werent lazy , i just copied dsu , and did some changes in code :D

thanks , i need to study lca :|

any one go idea how to do it usign bfs in undirected graph?

can i get discord sever link :)

На BledDest → Educational Round 110 — Editorial, 5 лет назад
0

i was having same logic ,but dont know how to implement , really nice implementation.

На saliii → Codeforces Round #411 Editorial , 5 лет назад
0

how it will be working for this then : aabb ,if it count for prev only

i know im wrong , but i dont know how

На BledDest → Codeforces Round #625 — разбор, 5 лет назад
0

i think because of your upper bound , array must me sorted .

+5

division is done because the same pair will be counted twice and not sure but the condition checks that if we should not count the same index value as we should have two value from different index

deleted

На vovuh → Codeforces Round #595 (Div. 3) Editorial, 5 лет назад
0

thanks man

На awoo → Educational Codeforces Round 108 Editorial, 5 лет назад
0

the round was amazing, can anyone help me identify the error in 114652844 to problem c, my approach is similar to the edi.

На vovuh → Codeforces Round #595 (Div. 3) Editorial, 5 лет назад
0

can any one tell what's wrong in my solution to c1 , my idea : to generate all subset (sum it ) and put it in set and check whether it is present or not 114425157

eg 5 3 . . . . . then AND_pref2 = 1 and AND_pref1 = 5 . generally it means by taking and operation you'r AND_pref will decrease(same for AND_suf) and for every i if it is valid permu then it would be equal.

На Monogon → Codeforces Round #712, 6 лет назад
0

i like the popovers.

0

use map

На ch_egor → Codeforces Round #707 Editorial, 6 лет назад
0

thanks, great exp.

На Fcdkbear → Codeforces Round #169 Editorial, 6 лет назад
0

overflow

На Endagorion → Codeforces Round #109: editorial, 6 лет назад
0

ps :) i was wrong

it helped after 5 year of you exp.

why it is giving tle 104708084 any suggestions ( problem B)

На MikeMirzayanov → Goodbye 2020. Hello 2021!, 6 лет назад
+5

!NotFake

На MikeMirzayanov → Goodbye 2020. Hello 2021!, 6 лет назад
0

look like you found.

На MikeMirzayanov → Goodbye 2020. Hello 2021!, 6 лет назад
0

same story bro :(

На MikeMirzayanov → Goodbye 2020. Hello 2021!, 6 лет назад
0

new year gift :P

see the magic tab

На rishabh-malhotra → Codeforces Diary, 6 лет назад
0

great work

На Anadi → Good Bye 2020 Editorial, 6 лет назад
0

did anybody get the idea of B soln 1?

На Anadi → Good Bye 2020 Editorial, 6 лет назад
0

i did not get the logic behind your solution, can you explain.

На Anadi → Good Bye 2020 Editorial, 6 лет назад
0

thanks, I feel dumb now .

На Anadi → Good Bye 2020 Editorial, 6 лет назад
0

what should i change in my solution C to get ac 102883253 , thank you and HAPPY NEW YEAR

На awoo → Educational Codeforces Round 101 Editorial, 6 лет назад
0

length should be even. edit: if you meant there are only '?'

На awoo → Educational Codeforces Round 100 Editorial, 6 лет назад
0

got it, thanks man.

На awoo → Educational Codeforces Round 100 Editorial, 6 лет назад
0

I think I got it, but I have a little doubt, for the ignored command to be successful we had to measure the distance from the point(max) where our previous command had been successful (i.e: from the next point it had been unsuccessful)?

На awoo → Educational Codeforces Round 100 Editorial, 6 лет назад
0

if i am not wrong you are trying to say that command is successful if robot receive command at t[i] which robot ignores when moving to x[i-1], if that's the case then why in the first test case why the last command is successful.

На awoo → Educational Codeforces Round 100 Editorial, 6 лет назад
0

can somebody explain what is the meaning of the below line's from problem c, thanks?

You call the command i successful, if there is a time moment in the range [ti,ti+1] (i. e. after you give this command and before you give another one, both bounds inclusive; we consider tn+1=+∞) when the robot is at point xi. Count the number of successful commands. Note that it is possible that an ignored command is successful.

На djm03178 → Codeforces Round #578 (Div. 2) Editorial, 6 лет назад
0

TO_OO_EndGame can you explain the logic behind your solution

На awoo → Educational Codeforces Round 61 Editorial, 6 лет назад
0

can any one explain why in problem A. regular brackets sample test case 3, answer is 0 ( ( ( ) ) ( ) )

На Monogon → Codeforces Round #658 Editorial, 6 лет назад
0

can someone view my problem 94937826 , why it's giving runtime error (cod 11) in which part of code , it is working fine on offline editor

На awoo → Educational Codeforces Round 95 Editorial, 6 лет назад
0

Yeah , thanks bro..

На awoo → Educational Codeforces Round 95 Editorial, 6 лет назад
0

I had read the problem 1418B - Negative Prefixes for more than 40 min and after that I had read the solution but I wasn't able to understand these lines in block ,can any one help , I think it says we need to find array so that it prefix sum array should be like starting from negative elements and once the positive element came then there should be no negative elements(all elements after that are positive) like eg [−8,−14,−13,−9,−5,2,0] and as given in solution and k is 5 , and we need to reduce the k some and propose a solution ,but that was not the case

Let k be the maximum j (1≤j≤n) such that pj <0. If there are no j such that pj<0, then k=0.

Your goal is to rearrange the values in such a way that k is minimum possible.

thanks in advance

На awoo → Educational Codeforces Round 90 Editorial, 6 лет назад
0

okay,thanks

На awoo → Educational Codeforces Round 90 Editorial, 6 лет назад
0

can some one explain how can i made this code more efficient (pluses and minuses) my submission is 85773685

На awoo → Educational Codeforces Round 90 Editorial, 6 лет назад
0

can any one explain me why i am getting TLE on 5th test case

my sublission is 85516199

На vovuh → Разбор Codeforces Round #653 (Div. 3), 6 лет назад
0

Please Someone Explain Why i am Getting TLE in Test case#5

my submission is : 85516199