显然,Python1行
2025-05-18 13:52:33
发布于:广东
80阅读
0回复
0点赞
print(input()[::-1])
全部评论 5
所以这就是c++难的原因之一吗
2025-06-08 来自 浙江
0并非,主要是学 c++ 基本上都要走信奥了,学的东西比 Python 多多了
2025-06-08 来自 广东
0c++ 做这题码量也不大:
#include <iostream> #include <cstdio> #include <algorithm> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); string s; cin >> s; reverse(s.begin(), s.end()); cout << s; return 0; }
熟练了15秒就能打好(除了初始化)
2025-06-08 来自 广东
0.............
1周前 来自 上海
0
为啥c++没有自带
2025-06-08 来自 浙江
0python自带头文件
2025-06-08 来自 浙江
0666
2025-06-08 来自 浙江
0ddd
2025-05-19 来自 浙江
0
有帮助,赞一个