よじろめ覚書

私の理解度重視のソースコードです。

2019-07-14から1日間の記事一覧

ABC038A - お茶

ABC

問題: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; }</string></iostream>