175022025-07-18 10:17:20algoproBolha a számegyenesenpypy3Wrong answer 0/10048ms19576 KiB
# UUID: 823ef6e7-f3f0-417b-a087-38df5ac5958c
N=int(input())
S = input()
hely=0
for i in range(N):
    if (S[i])=="R":
        hely+=1
    else: 
        hely+=1
    print(0-hely)



SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer39ms19296 KiB
2Wrong answer43ms19436 KiB
subtask20/15
3Wrong answer39ms19404 KiB
4Wrong answer41ms19452 KiB
5Wrong answer45ms19232 KiB
6Wrong answer45ms19392 KiB
subtask30/10
7Wrong answer45ms19456 KiB
8Wrong answer39ms19440 KiB
9Wrong answer45ms19404 KiB
10Wrong answer46ms19552 KiB
11Wrong answer48ms19436 KiB
subtask40/75
12Wrong answer45ms19428 KiB
13Wrong answer45ms19308 KiB
14Wrong answer45ms19472 KiB
15Wrong answer41ms19412 KiB
16Wrong answer41ms19424 KiB
17Wrong answer45ms19576 KiB
18Wrong answer39ms19428 KiB
19Wrong answer43ms19540 KiB
20Wrong answer39ms19404 KiB
21Wrong answer45ms19436 KiB