32722023-02-23 16:18:51MarkopoloBolha a számegyenesencpp14Wrong answer 0/1003ms4684 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
1Accepted3ms1876 KiB
2Wrong answer3ms2120 KiB
subtask20/15
3Accepted3ms2484 KiB
4Wrong answer3ms2612 KiB
5Accepted3ms2824 KiB
6Accepted3ms3072 KiB
subtask30/10
7Wrong answer3ms3160 KiB
8Wrong answer3ms3224 KiB
9Wrong answer3ms3356 KiB
10Wrong answer3ms3516 KiB
11Wrong answer3ms3724 KiB
subtask40/75
12Wrong answer3ms3780 KiB
13Accepted3ms3896 KiB
14Wrong answer3ms3868 KiB
15Accepted3ms4112 KiB
16Wrong answer3ms4120 KiB
17Wrong answer3ms4204 KiB
18Wrong answer3ms4272 KiB
19Accepted3ms4344 KiB
20Accepted3ms4576 KiB
21Wrong answer3ms4684 KiB