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 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
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