可以这样写

daizihan13579 2020-02-06 21:26:29 12 返回题目

#include #include using namespace std; int main() { string a; int n; cin >> a; cin >> n; int x = a.size(); if (n > x) { cout << 0 << endl; } else { cout << a[x-n] << endl; } return 0; }

{{ vote && vote.total.up }}