6782 | 2023-12-19 09:50:25 | VKristof | Bolha a számegyenesen | cpp17 | Wrong answer 10/100 | 3ms | 4112 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
{
b=b+1;
}
}
cout<<b;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2068 KiB | ||||
subtask2 | 0/15 | ||||||
3 | Wrong answer | 3ms | 2152 KiB | ||||
4 | Accepted | 3ms | 2276 KiB | ||||
5 | Accepted | 3ms | 2296 KiB | ||||
6 | Accepted | 3ms | 2516 KiB | ||||
subtask3 | 10/10 | ||||||
7 | Accepted | 3ms | 2636 KiB | ||||
8 | Accepted | 3ms | 2824 KiB | ||||
9 | Accepted | 3ms | 3012 KiB | ||||
10 | Accepted | 3ms | 3504 KiB | ||||
11 | Accepted | 3ms | 3524 KiB | ||||
subtask4 | 0/75 | ||||||
12 | Accepted | 3ms | 3592 KiB | ||||
13 | Wrong answer | 3ms | 3532 KiB | ||||
14 | Accepted | 3ms | 3544 KiB | ||||
15 | Wrong answer | 3ms | 3544 KiB | ||||
16 | Accepted | 3ms | 3656 KiB | ||||
17 | Accepted | 3ms | 3732 KiB | ||||
18 | Accepted | 3ms | 3748 KiB | ||||
19 | Wrong answer | 3ms | 3748 KiB | ||||
20 | Wrong answer | 3ms | 3868 KiB | ||||
21 | Accepted | 3ms | 4112 KiB |