| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 133 |
| 10 | cry | 130 |
|
0
what if we do not process the nodes in reverse order? i think that will not change anything. |
|
0
Can you explain your this solution a little bit please? |
|
0
Sir can you reply if https://atcoder.jp/contests/dp/tasks/dp_q this is solved by persistent segment trees only? |
|
0
|
|
-7
lol segment tree might give you memorylimit exceeded and you are talking about lazy |
|
0
can you explain this please? |
|
+1
what are exactly laddus? i never understand this word. 250 ladus? |
|
0
link not working |
|
0
can anyone please explain D |
|
+4
thanks can you just tel if this approach is correct? int main() { int x, y; cin>>x>>y; int dp[1000]={0}; } |
|
0
thanks a lot. it really helped |
|
0
No you explained really well thanks a lot. |
|
0
Can you please explain the logic to your solution? I am unable to solve it. how did you use binary search? |
|
0
thanks a lot. i tried to dry run this example it is cleared now. basically for calculating of number of subsequences of length 2 we required 2d array of size[26][26] (for the two positions i and j ) . similarly if the question were for length 3 then we would have to create three d array of size 26*26*26. right? |
|
0
thanks a lot |
|
0
Auto comment: topic has been updated by jhjfbsbfkbjfnfnfjfj (previous revision, new revision, compare). |
|
0
yeah i got it. thanks for posting the link man. |
|
0
for a string 2114 pref[0] would give us 4%2019 pref[1] would give 14%2019 pref[2] would give 114%2019 and pref[3] would give 2114%2019. right? then you afterwards what you implemented using map is unclear to me. please explain this. map<ll,ll>mp;
ll ans = 0;
for(ll i=0;i<n;i++)
{
if(pref[i]==0)ans++;
ans+=mp[pref[i]];
mp[pref[i]]++;
} |
|
0
i am not that type of a person trust me. btw i am really sorry. this was just in a funny way. i will not say these things again. |
|
-8
i understood it thanks |
|
0
not at all. i am never a fake account. i just got frustrated with this question. i wasted almost 20minutes just reading and still couldn't understand the question. really sorry. |
|
0
you mean this dp would work dp[i] = dp[i] + 1. where i is one of the primefactors of ith number. right? if yes then the maximum value of this array will be our answer? |
|
0
can you please explain a little bit? |
|
+1
I completely agree with you bro. |
|
0
thankss it is cleared |
|
0
thanks a lot man |
|
0
honestly won't make any difference |
|
+1
Thanks a lot poduingi |
|
0
yeah i tried that it didn't seem to work out |
|
-70
you look like a nerd but your replies are funny |
|
0
codechef hmmmm i seee |
|
-28
Does Tanya Romanova love you? |
|
-75
sorry |
|
0
watched it! really great |
|
0
thanks a lot |
|
0
Sample Input ( T followed by N C M where N is the total number of unique coins and C is the number of identical charities and M is the number of coins each charity at least gets (it is either 1, 2 , 3). Sample Input : 3 5 3 1 5 2 2 6 2 3 Sample Output : 25 10 10 |
|
0
thanks a lot. what is pre1 and pre2 and also can you tell about what states you considered in dp and how you deduced it? |
| Name |
|---|


