字符逆序c语言代码家谱 摘要:解题思路:注意事项:注意输出时i的最大值参考代码:#includeint main(){ char c,a[100]; int i=0,t; while((c=getchar())!=EOF…… 题解列表 2021年11月19日 0 点赞 0 评论 545 浏览 评分:0.0
1093: 字符逆序 摘要:直接用 reverse 函数将字符串逆序。#include <bits/stdc++.h> using namespace std; int main() { string s; …… 题解列表 2021年12月23日 0 点赞 0 评论 201 浏览 评分:0.0
StringBuffer里面的reverse方法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2022年01月05日 0 点赞 0 评论 134 浏览 评分:0.0
字符逆序------------- 摘要:解题思路:使用切片参考代码:s=input() s=s[::-1] print(s)…… 题解列表 2022年01月08日 0 点赞 0 评论 210 浏览 评分:0.0
编写题解 1093: 字符逆序c语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; gets(a); for(int i=…… 题解列表 2022年01月16日 0 点赞 0 评论 278 浏览 评分:0.0
1093: 字符逆序(C语言版) 摘要:**具体代码:** ```c #include #include int main() { char str[100]; gets(str); for (int i = strl…… 题解列表 2022年02月09日 0 点赞 0 评论 176 浏览 评分:0.0
1093: 字符逆序 摘要:```cpp #include using namespace std; int main(){ char str[100]; gets(str); //用gets输…… 题解列表 2022年03月07日 0 点赞 0 评论 219 浏览 评分:0.0
字符逆序---还可以 摘要:解题思路:遍历列表中的每一个元素,从列表的最后开始遍历,列表a[::-1]表示从最后一个元素开始,将每一个元素都倒序赋值给一个新的变量,添加道一个新的列表里,输出列表,元素倒序不一定要用reverse…… 题解列表 2022年03月10日 0 点赞 0 评论 265 浏览 评分:0.0
字符逆序(Java) 摘要:解题思路:注意事项:参考代码:import java.io.*; import java.util.*; public class Main { public static void…… 题解列表 2022年03月12日 0 点赞 0 评论 269 浏览 评分:0.0
题解 1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100]; gets(st…… 题解列表 2022年03月13日 0 点赞 0 评论 299 浏览 评分:0.0