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 | 4039 |
2 | tourist | 3841 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3590 |
5 | ecnerwala | 3542 |
6 | Benq | 3535 |
7 | orzdevinwang | 3526 |
8 | gamegame | 3477 |
9 | heuristica | 3357 |
10 | Radewoosh | 3355 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | atcoder_official | 160 |
3 | Um_nik | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 153 |
8 | luogu_official | 152 |
9 | awoo | 151 |
10 | TheScrasse | 147 |
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