174972025-07-18 10:15:52algoproBolha a számegyenesenpypy3Wrong answer 0/10046ms19600 KiB
# UUID: d657c4d9-e177-4b71-9eff-faff8dbfa521
N=int(input())
S = input()
hely=0
for i in range(len(S)):
    if (S[i])=="L":
        hely-=1
    else: 
        hely+=1
    print(0-hely)



SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer43ms19356 KiB
2Wrong answer39ms19436 KiB
subtask20/15
3Wrong answer43ms19328 KiB
4Wrong answer46ms19404 KiB
5Wrong answer39ms19448 KiB
6Wrong answer39ms19272 KiB
subtask30/10
7Accepted39ms19432 KiB
8Wrong answer43ms19308 KiB
9Wrong answer43ms19336 KiB
10Wrong answer39ms19600 KiB
11Wrong answer46ms19432 KiB
subtask40/75
12Wrong answer43ms19304 KiB
13Wrong answer39ms19408 KiB
14Wrong answer39ms19360 KiB
15Wrong answer45ms19416 KiB
16Wrong answer39ms19428 KiB
17Wrong answer45ms19432 KiB
18Wrong answer39ms19384 KiB
19Wrong answer43ms19412 KiB
20Wrong answer43ms19436 KiB
21Wrong answer39ms19436 KiB