mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 17:51:58 +00:00
A - Last Letter
https://atcoder.jp/contests/abc244/submissions/30268586
This commit is contained in:
parent
6baf86010c
commit
84858f4c68
16
AtCoder/ABC244/A/A.cpp
Normal file
16
AtCoder/ABC244/A/A.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user