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.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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.
Название |
---|
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