174942025-07-18 10:14:13algoproBolha a számegyenesenpypy3Wrong answer 0/10045ms19612 KiB
# UUID: bf177ccb-a354-45ae-a36d-5ba9e1493545
N=int(input())
S = input()
hely=0
for i in range(len(S)):
    if (S[i])=="R":
        hely+=1
    else: 
        hely-=1
    print(0-hely)



SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer43ms19432 KiB
2Wrong answer39ms19612 KiB
subtask20/15
3Wrong answer45ms19280 KiB
4Wrong answer43ms19364 KiB
5Wrong answer39ms19392 KiB
6Wrong answer39ms19400 KiB
subtask30/10
7Accepted39ms19376 KiB
8Wrong answer43ms19392 KiB
9Wrong answer39ms19368 KiB
10Wrong answer43ms19440 KiB
11Wrong answer39ms19436 KiB
subtask40/75
12Wrong answer39ms19432 KiB
13Wrong answer43ms19304 KiB
14Wrong answer39ms19480 KiB
15Wrong answer39ms19500 KiB
16Wrong answer39ms19432 KiB
17Wrong answer39ms19428 KiB
18Wrong answer43ms19580 KiB
19Wrong answer43ms19508 KiB
20Wrong answer43ms19460 KiB
21Wrong answer39ms19440 KiB