175172025-07-18 10:29:00algoproBolha a számegyenesenpypy3Wrong answer 0/10046ms19636 KiB
# UUID: 6fdc4888-0fb0-48be-b6fe-aefdebe1e135
x=0
n=int(input())



y=input()

for i in y:
    if i =="L":
      x=x-1  
    else:
      x=x+1

print(-x)
print(x)
































































































SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer43ms19436 KiB
2Wrong answer39ms19436 KiB
subtask20/15
3Wrong answer43ms19272 KiB
4Wrong answer39ms19404 KiB
5Wrong answer43ms19636 KiB
6Wrong answer39ms19424 KiB
subtask30/10
7Wrong answer43ms19480 KiB
8Wrong answer39ms19420 KiB
9Wrong answer46ms19476 KiB
10Wrong answer43ms19472 KiB
11Wrong answer46ms19440 KiB
subtask40/75
12Wrong answer43ms19448 KiB
13Wrong answer43ms19512 KiB
14Wrong answer39ms19372 KiB
15Wrong answer39ms19452 KiB
16Wrong answer39ms19472 KiB
17Wrong answer43ms19432 KiB
18Wrong answer39ms19432 KiB
19Wrong answer43ms19400 KiB
20Wrong answer39ms19576 KiB
21Wrong answer43ms19320 KiB