Monday, October 16, 2017

A. Between the Offices Codeforces 867A Problem Solution



http://codeforces.com/problemset/problem/867/A


using System;

 class Program
{
     static void Main()
    {
        int A = int.Parse(Console.ReadLine());
        string joy = Console.ReadLine();
        int b=joy.Length;
        if(joy[0]=='S'&&joy[b-1]=='F')
        {
            Console.WriteLine("YES");

        }
        else
        {
            Console.WriteLine("NO");
        }
      
    }
  
}

No comments:

Post a Comment