174962025-07-18 10:15:25algoproBolha a számegyenesenpypy3Wrong answer 0/10046ms19604 KiB
# UUID: 137837d0-f2e5-42ab-8ec3-8fdeac9e1074
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 answer39ms19384 KiB
2Wrong answer43ms19436 KiB
subtask20/15
3Wrong answer46ms19424 KiB
4Wrong answer39ms19448 KiB
5Wrong answer43ms19344 KiB
6Wrong answer39ms19432 KiB
subtask30/10
7Wrong answer43ms19372 KiB
8Wrong answer39ms19392 KiB
9Wrong answer39ms19412 KiB
10Wrong answer46ms19576 KiB
11Wrong answer39ms19436 KiB
subtask40/75
12Wrong answer39ms19604 KiB
13Wrong answer43ms19520 KiB
14Wrong answer39ms19380 KiB
15Wrong answer45ms19356 KiB
16Wrong answer45ms19440 KiB
17Wrong answer39ms19500 KiB
18Wrong answer46ms19468 KiB
19Wrong answer39ms19420 KiB
20Wrong answer43ms19508 KiB
21Wrong answer39ms19400 KiB