From 84858f4c684b3a4722199d39c3a095eb4de2fc04 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 20 Mar 2022 20:01:16 +0800 Subject: [PATCH] A - Last Letter https://atcoder.jp/contests/abc244/submissions/30268586 --- AtCoder/ABC244/A/A.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 AtCoder/ABC244/A/A.cpp diff --git a/AtCoder/ABC244/A/A.cpp b/AtCoder/ABC244/A/A.cpp new file mode 100644 index 00000000..2a29034e --- /dev/null +++ b/AtCoder/ABC244/A/A.cpp @@ -0,0 +1,16 @@ +#include +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +int n; +std::string s; + +int main() { + std::ios::sync_with_stdio(false); + cin >> n >> s; + cout << *s.rbegin() << endl; + return 0; +}