【链接】h在这里写链接
【题意】
在这里写题意
【题解】
在这里写题解
【错的次数】
0
【反思】
在这了写反思
【代码】
#include <bits/stdc++.h>
using namespace std;
string s;
int main()
{
//freopen("F:\\rush.txt","r",stdin);
int len;
scanf("%d",&len);
cin >> s;
int sdf = 0,fds = 0;
for (int i = 1;i < len;i++)
if (s[i]!=s[i-1])
{
if (s[i-1]=='S')//����Ǵ�S����F
{
sdf++;
}else
{
fds++;
}
}
if (sdf>fds )
puts("YES");
else
puts("NO");
return 0;
}