67802023-12-19 09:47:13VKristofBevásárláscpp17Wrong answer 0/1003ms3836 KiB
#include <iostream>

using namespace std;

int main()
{
    int a,b=0;
    cin>>a;
    char c[a];
    for(int i=0; i<a; i++)
    {
      cin>>c[i];
    }
    for(int i=0; i<a; i++)
        {
         if(c[i]=='R')
         {
          b=b-1;
         }
         else if(c[i]=='L')
         {
           b=b+1;
         }
        }
        cout<<b;


    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1880 KiB
2Wrong answer3ms2116 KiB
3Wrong answer3ms2196 KiB
subtask20/10
4Wrong answer3ms2352 KiB
5Wrong answer3ms2604 KiB
6Wrong answer3ms2852 KiB
subtask30/20
7Wrong answer3ms2828 KiB
8Wrong answer3ms3080 KiB
9Wrong answer3ms3180 KiB
10Wrong answer3ms3392 KiB
subtask40/30
11Wrong answer3ms3368 KiB
12Wrong answer3ms3368 KiB
13Wrong answer3ms3500 KiB
14Wrong answer3ms3512 KiB
subtask50/40
15Wrong answer3ms3504 KiB
16Wrong answer3ms3628 KiB
17Wrong answer3ms3764 KiB
18Wrong answer3ms3832 KiB
19Wrong answer3ms3836 KiB
20Wrong answer3ms3780 KiB