提交时间:2024-10-26 18:22:54

运行 ID: 54241

#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; }