Hi, Thanks for opening this Link :)
Here's the Problem Link: Problem D Link
My Submission Link: Please Click Me
I have Commented my logic which is almost same as that of editorial Very simple
Thanks For Reading
Hoping for a Prompt Reply.
# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 159 |
4 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 150 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
Hi, Thanks for opening this Link :)
Here's the Problem Link: Problem D Link
My Submission Link: Please Click Me
I have Commented my logic which is almost same as that of editorial Very simple
Thanks For Reading
Hoping for a Prompt Reply.
Name |
---|
Bro I was not able to catch the mistake, but I got a test case where your code failed.
234 RRRLLLRRLLRRLLLRRRLLLRLLLRLLRRRLLLRLRRLRLLLRRLRLLRRLRLRRLLLRRLLRLLLRLRLLLRLRRRLRLLRLLLRLRRLRRRLLRRRLLRRLLRLRLRRLLLRRLLRLRLLRRLLRRLRRLLLRRLRRRLLLRRRLRRRLRRRLRRRLLRLLLRLLRRLLLRRRLLRRRLLRRRLLLRLLLRRRLRLLLRRLLRRRLLLRRLRRLLLRLLRRLRRLLRLLRR answer of your code: 37 correct answer: 36
here is a smaller one.
12 RRRLLLRRLLRR
ans = 2 your ans = 3
I Have Corrected My code for handling this case
I had to take Consecutive
R
starting from first occurance ofL
Like in this case
RRLLRR
MY code will start from
0th index
But it should start processing from first
R
after anyL segment
i.e from 4th index (O based indexing)
Still getting WA on 33 Test case WA 33 TestCase
I have submitted my code to find this case but it hasn't been evaluated uptill now
Thank You For your Support
Finally Got AC
Thank You
CodeForces Community
and Danish_amin_01