提交时间:2024-10-26 23:10:54
运行 ID: 54271
#include<bits/stdc++.h> using namespace std; string s; void f(int index) { if(index == -1) { return; } cout << s[index]; f(index - 1); } int main() { cin >> s; int len = s.size() - 2; f(len); return 0; }