第32658题 程序题
递归实现以!结束的字符串逆序输出

题目要求

输入一串以!结束的字符,使用递归算法实现逆序输出。

输入描述

输入一段长度不超过200的字符串,以!作为结束标记。

输出描述

逆序输出除结束符!之外的字符串内容。

输入样例

abc!

输出样例

cba
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
编辑模式
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析