1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ getline(cin,s); fo…… 题解列表 2022年05月13日 0 点赞 0 评论 463 浏览 评分:0.0
优质题解 1093: 字符逆序 摘要:解题思路:(1)利用反向迭代器reverse_iterator:rbegin() 和 rend(),比如:string str1("1234567890"); string str2(str1.rb…… 题解列表 2022年04月25日 1 点赞 0 评论 3057 浏览 评分:9.8
字符逆序(C语言代码) 摘要:解题思路:先逆序在输出。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; char temp;…… 题解列表 2022年04月13日 0 点赞 0 评论 517 浏览 评分:0.0
题目 1093: 字符逆序 摘要:解题思路:①将输入的字符串生成列表②用reverse进行翻转③输出字符注意事项:输出为一行参考代码:li=list(str(input()))if len(li)<=100: li.reverse()…… 题解列表 2022年04月08日 0 点赞 0 评论 526 浏览 评分:0.0
用列表储存字符串的每个元素,再逆序 摘要:解题思路:用列表储存字符串的每个元素,再逆序注意事项:参考代码:a=input()b=[]for i in a: b.append(i)b=reversed(b)for i in b: p…… 题解列表 2022年04月01日 0 点赞 0 评论 423 浏览 评分:0.0
java 字符逆序 简单递归思想 摘要:解题思路: 利用简单递归解题注意事项:注意递归循环条件 和出口参考代码:package ti;import java.util.Scanner;public class t1 {public stat…… 题解列表 2022年03月28日 0 点赞 0 评论 527 浏览 评分:0.0
字符串逆序 摘要:str=input() print(str[-1::-1])解题思路:注意事项:参考代码:str=input()print(str[-1::-1])…… 题解列表 2022年03月28日 0 点赞 0 评论 563 浏览 评分:0.0
题解 1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100]; gets(st…… 题解列表 2022年03月13日 0 点赞 0 评论 683 浏览 评分:0.0
字符逆序(Java) 摘要:解题思路:注意事项:参考代码:import java.io.*; import java.util.*; public class Main { public static void…… 题解列表 2022年03月12日 0 点赞 0 评论 889 浏览 评分:0.0