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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 151 |
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