Ali-Kemal's blog

By Ali-Kemal, history, 5 years ago, In Russian
#include<bits/stdc++.h>   
using namespace std;     
int n,a,l,r;     
string s;     
int main(){
    cin>>n>>s;
    for (int i = 0; i < n; ++i){
        if(s[i]=='L') l++;
        else r++;
    }cout<<(l+r)+1<<"\n";
 }
  • Vote: I like it
  • -1
  • Vote: I do not like it