Created
November 17, 2016 03:09
-
-
Save whatalnk/5421bc70f150c34dc22160fff0dd4b52 to your computer and use it in GitHub Desktop.
AtCoder ABC #038 A [C++]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
string s; | |
cin >> s; | |
int n = s.length(); | |
if (s.compare(n-1, 1, "T") == 0) { | |
cout << "YES" << endl; | |
} else { | |
cout << "NO" << endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment