Skip to content

Commit c834a57

Browse files
committed
Auto-sync: 2026-02-25 15:26:18
1 parent 8db501d commit c834a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2000D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void MASTER(){
3131

3232
while(l<r){
3333
if(s[l] == 'L' && s[r] == 'R'){
34-
sum += (pref[r] - pref[l]);
34+
sum += (pref[r] - pref[l-1]);
3535
l++;
3636
r--;
3737
}

0 commit comments

Comments
 (0)