174842025-07-18 10:08:27algoproBolha a számegyenesenpypy3Wrong answer 0/10043ms19492 KiB
# UUID: 0fc219e4-eab6-4637-a1f6-20269def42e9
n=int(input())
ugrasok= input()
x=0
for i in range(n):
    if ugrasok[i]=="R":
        x+=1
    else:
        x-=1
if x==0:
    print(x)


SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted43ms19444 KiB
2Wrong answer39ms19436 KiB
subtask20/15
3Wrong answer39ms19344 KiB
4Wrong answer39ms19400 KiB
5Accepted43ms19344 KiB
6Accepted43ms19452 KiB
subtask30/10
7Wrong answer39ms19220 KiB
8Wrong answer39ms19272 KiB
9Wrong answer39ms19380 KiB
10Wrong answer43ms19424 KiB
11Wrong answer43ms19272 KiB
subtask40/75
12Wrong answer43ms19492 KiB
13Wrong answer39ms19412 KiB
14Wrong answer39ms19436 KiB
15Wrong answer43ms19408 KiB
16Wrong answer39ms19284 KiB
17Wrong answer43ms19432 KiB
18Wrong answer37ms19228 KiB
19Wrong answer43ms19432 KiB
20Wrong answer43ms19444 KiB
21Wrong answer39ms19384 KiB