| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | Dominater069 | 131 |
| 9 | Proof_by_QED | 130 |
| 9 | AmShZ | 130 |
|
0
it just feels good |
|
0
what you are trying to convince in the last section of 2nd point is that for a fixed c array the lexicographically bigger b1 is always better compared to a smaller b2 (both having same sum and b1,b2 are sorted),now,what if c is exactly same as b2? |
|
Auto comment: topic has been updated by psychobot (previous revision, new revision, compare). |
|
+4
when you find that ans is zero( v[i-1]/v[i] is not integer ) you can break,but if you don't the value of v[i-1]/v[i] keeps jumping ex 1 1000000000 1 1000000000 1 1000000000 1 1000000000... so so your actual complexity is now N*sqrt(m) instead of sqrt(m) |
|
+8
got you ORZzz!!! |
|
+8
can you explain more that how you got ans for merged string str1+str2 from answers of str1 and str2 and t1 t2 m1 m2 ,ok that answer of this string is |m| + max(0,t) but how to get answers of all substrings that pass from the concatenation point of str1 and str2 |
|
0
let v be the sorted vector of indices where a[i]!=b[i] (let size of v be vn) then the answer of the problem is f(0) where, cost(i,j)=min(y,|v[i]-v[j]|*x) f(vn-1)=y,f(cn-2)=cost(vn-1,vn-2) f(i) = min(((vn-i)%2)*y + f(i+1),cost(i,i+1)+f(i+2)) |
|
+75
One of the best C |
|
0
my bad!!! I understood the problem incorrectly ;=( |
|
0
I didn't got the first claim of problem E that strength required is max ai-bi.Suppose a={5,1,2,3,4} b={1,2,3,4,5} still if s=1 a can be converted to b by these operations swap(a1,a2) swap(a2,a3) swap(a3,a4) swap(a4,a5),,then how is the claim true?? |
|
+6
If CF worked like that I could have been red... |
|
+39
why so tight constraint(a,b<2000000000) for d? that forced to think exactly like you which is not always possible; |
|
+16
Nope |
|
0
l<=x<=r |
|
0
A very well balanced contest,, Loved it.. |
|
0
look closely i have written [x%(2^(j+1))]-2^j which can be negative |
|
-15
He didn't participated :-{ |
|
0
they didn't got uhh |
|
+5
(x+y)%2 == (x xor y)%2 so whatever you do doesn't matter at the beginning alice and bob have numbers with different parity so at the end also they will have numbers with different parity hence only one of these can be winner |
|
0
1,1,2 have mean of 1.5 |
|
0
why would they want to make it more solvable you have to do this thing.... |
|
+8
I got this from devaneter_99 message I need help! I need to contact the crowdforces user on the site and send my data to work with him. I need this to learn from him, but I don't do it because I have messages for users with a blue account and above! you can send a private message to use crowdforces with the text: cc9864a1568a7c0bfd1bd7c4a19fd014996545e495546d8d4c1569b885ea3243 I still can't understand this.. |
|
0
count of numbers in [1,x] having jth bit set is floor(x/(2^(j+1))) + max(0,x%(2^(j+1))-2^j). |
|
+1
we can calculate the number of set bits at jth position in [1,n] in O(log n) |
|
+5
C->D(1400->2100) shouldn't there be a problem of 1700 in between(considering div2) |
|
On
zenitsu101 →
Ultimate Topic list (by YouKn0wWho) with filters on Difficulty, categories and topics, 5 years ago
+8
You know who XD |
|
+6
Happy diwali guys Let's finally enjoy for 2 days :) |
|
+1
why green?? aim for red :) |
|
+7
here are tourist's pro tips :) |
|
+14
mathematics |
|
-62
where |
|
-74
every |
|
-70
math |
|
-68
math |
|
+16
Korney Korneevich sounded like gennady korotkevich to me :-) |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
0
actually when i wrote that comment i thought the wrong way but after thinking a lot i concluded that for m>=n there exists such an input for which solution is not possible ex: suppose n=m=6 consider the following 6 constraints {(1,2,6),(1,3,6),(1,4,6),(1,5,6),(1,6,2),(2,1,6)} here considering first 4 no node can be between 1 and 6 so u are forced to connect 1-6 if done this u cannot add 2 to either side as it will always violate the either of the last 2 constraints,,,,, may be there is a solution for some special cases for m>=n |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
0
however it should give wrong output format rather then TLE if so i would have done d too |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
+3
violating the condition that 1<=aj<=n i also did same mistake though |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
0
can think of m<2*n |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
+3
u only checked for indices which are "." but u should also check for "X" too a simple example is this XX XX your code will give YES for it but ans should be no as following will also produce same EN grid XX X. |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
0
oopssss got it |
|
On
Tlatoani →
Editorial for Technocup 2022 — Elimination Round 1 and Codeforces Round #749 (Div. 1+Div. 2), 5 years ago
0
my solution to D is working in my device properly but when i submitted it showed TLE on permutation {1,2} anyone kindly help 132260554 |
|
0
I did with dp i can have ans if n goes till 1e8 its sometimes very interesting to know that the solution was very diffrent[submission:131209883] |
|
+2
he is saying that ((x^y)%mod)!=(((x^(y%mod))%mod)) |
|
0
they are same |
|
0
127980698 here |
|
0
[submission:https://codeforces.me/contest/1567/submission/127980698] O(n) solution for problem D |
|
0
its okay if it's problem A |
|
0
that scared me first |
|
-21
actually not full |
|
0
can u elaborate more?? |
|
0
yaa makes sense |
|
0
if the king only oscillates in two squares then the possible positions will be 64-16=48 and if u are unlucky enough u can exhaust 130 moves |
|
0
even if n==k u have to take whole input :-) |
|
0
we cannot rely on random walks what if the king is oscillating back and fro in two squares and doing random walks yr queen doesn't give check I know that probability of this is less but is not 0 so this approach can fail once in a million |
|
0
If input array have duplicates your m[a[i]] will be over written and hence some data is lost this will produce an error suppose that array is 2 2 2 2 then always a[i]=2 and m[2] will be over written 3 times and eventually will store the last value and previous will be lost |
|
-18
XD |
|
+31
my god they remembered the question of the contest which was 8 years ago :-O |
| Name |
|---|


