3271 | 2023-02-23 16:18:03 | Markopolo | Bolha a számegyenesen | cpp14 | Wrong answer 0/100 | 3ms | 3724 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1744 KiB | ||||
2 | Wrong answer | 3ms | 1912 KiB | ||||
subtask2 | 0/15 | ||||||
3 | Accepted | 2ms | 1996 KiB | ||||
4 | Wrong answer | 3ms | 2244 KiB | ||||
5 | Accepted | 3ms | 2452 KiB | ||||
6 | Accepted | 3ms | 2544 KiB | ||||
subtask3 | 0/10 | ||||||
7 | Wrong answer | 2ms | 2672 KiB | ||||
8 | Wrong answer | 3ms | 2792 KiB | ||||
9 | Wrong answer | 3ms | 3004 KiB | ||||
10 | Wrong answer | 3ms | 3220 KiB | ||||
11 | Wrong answer | 3ms | 3304 KiB | ||||
subtask4 | 0/75 | ||||||
12 | Wrong answer | 2ms | 3380 KiB | ||||
13 | Accepted | 2ms | 3492 KiB | ||||
14 | Wrong answer | 2ms | 3268 KiB | ||||
15 | Accepted | 3ms | 3396 KiB | ||||
16 | Wrong answer | 3ms | 3484 KiB | ||||
17 | Wrong answer | 2ms | 3480 KiB | ||||
18 | Wrong answer | 3ms | 3588 KiB | ||||
19 | Accepted | 3ms | 3596 KiB | ||||
20 | Accepted | 3ms | 3608 KiB | ||||
21 | Wrong answer | 3ms | 3724 KiB |