Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created November 17, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/5421bc70f150c34dc22160fff0dd4b52 to your computer and use it in GitHub Desktop.
Save whatalnk/5421bc70f150c34dc22160fff0dd4b52 to your computer and use it in GitHub Desktop.
AtCoder ABC #038 A [C++]
#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