32712023-02-23 16:18:03MarkopoloBolha a számegyenesencpp14Wrong answer 0/1003ms3724 KiB
#include <iostream>

using namespace std;

int main()
{
    int n,i,r=0,l=0;
    char c;
    cin>>n;
    for(i=0;i<n;i++)
    {
        cin>>c;
        if(c=='R')
            r++;
        if(c=='L')
            l++;
    }
    cout<<r-l;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1744 KiB
2Wrong answer3ms1912 KiB
subtask20/15
3Accepted2ms1996 KiB
4Wrong answer3ms2244 KiB
5Accepted3ms2452 KiB
6Accepted3ms2544 KiB
subtask30/10
7Wrong answer2ms2672 KiB
8Wrong answer3ms2792 KiB
9Wrong answer3ms3004 KiB
10Wrong answer3ms3220 KiB
11Wrong answer3ms3304 KiB
subtask40/75
12Wrong answer2ms3380 KiB
13Accepted2ms3492 KiB
14Wrong answer2ms3268 KiB
15Accepted3ms3396 KiB
16Wrong answer3ms3484 KiB
17Wrong answer2ms3480 KiB
18Wrong answer3ms3588 KiB
19Accepted3ms3596 KiB
20Accepted3ms3608 KiB
21Wrong answer3ms3724 KiB