编写题解 1093: 字符逆序(Python代码)看了一下好像还有没有人写一行代码的,我就献丑了(手动滑稽) 摘要:解题思路:字符串切片走起a= '123456' b = (1,2,3,4,5,6) c = [1,2,3,4,5,6] a = a[::-1] b = b[::-1] c =…… 题解列表 2021年05月02日 0 点赞 0 评论 1042 浏览 评分:9.9
[字符逆序]-Java-简单-StringBuffer reverse() 摘要: import java.util.Scanner; public class 字符逆序 { public static void main(String[] args) …… 题解列表 2021年05月21日 0 点赞 0 评论 835 浏览 评分:9.9
【C++较复杂版解法】 摘要:#include <iostream> #include <string.h>//引用字符串函数头文件 using namespace std; int main() { char str…… 题解列表 2021年06月18日 0 点赞 0 评论 441 浏览 评分:9.9
编写题解 1093: 字符逆序 基础解法 摘要:解题思路:正常解法注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int b,c,d,n; char a[100]; gets(a);…… 题解列表 2021年10月11日 0 点赞 0 评论 715 浏览 评分:9.9
超简短,通俗易懂的代码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char s[109]; int len; …… 题解列表 2021年12月09日 0 点赞 0 评论 492 浏览 评分:9.9
全网最短的代码 摘要:解题思路:注意事项:存入的数组最后一项系统给了空格,在输出的时候第一项要减二参考代码:#include<stdio.h>#include<string.h>int main(){char str[10…… 题解列表 2021年12月18日 0 点赞 0 评论 621 浏览 评分:9.9
一行代码解决字符逆序问题 摘要:解题思路:由于input输出的直接就是字符串,我们就可以直接对字符串进行逆序,使用的方法就是切片逆序[::-1],-1就是逆序输出,那么解题方法就很简单了,一行代码就可以解决。参考代码:print(s…… 题解列表 2021年12月19日 0 点赞 0 评论 1052 浏览 评分:9.9
1093: 字符逆序(c++) 摘要:解题思路:注意事项:主义头文件#include<string>参考代码:#include <iostream>#include<string>using namespace std;int main(…… 题解列表 2022年01月24日 0 点赞 0 评论 431 浏览 评分:9.9
用切片来写 摘要:a=input()count=len(a)z=count-1q=countfor i in range(count): print(a[z:q],end='') z-=1 …… 题解列表 2022年02月02日 0 点赞 0 评论 615 浏览 评分:9.9
c语言利用指针解决(代码简洁) 摘要:```c #include int main() { char str[100]; char* p=str, * q=str;//定义两个指针变量,并指向数组首地址 gets(str…… 题解列表 2022年02月26日 0 点赞 0 评论 391 浏览 评分:9.9