ABC038A - お茶
問題:A - お茶
#include <iostream> #include <string> using namespace std; int main(void) { string s; cin.tie(0); ios::sync_with_stdio(false); cin >> s; cout << (s[s.length() - 1] == 'T'? "YES" : "NO") << "\n"; return 0; }
問題:A - お茶
#include <iostream> #include <string> using namespace std; int main(void) { string s; cin.tie(0); ios::sync_with_stdio(false); cin >> s; cout << (s[s.length() - 1] == 'T'? "YES" : "NO") << "\n"; return 0; }