编写题解 1031: [编程入门]自定义函数之字符串反转--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void che(char str[]){ gets(str); for(int i=s…… 题解列表 2022年03月07日 0 点赞 0 评论 220 浏览 评分:0.0
StringBuffer中的reverse 摘要:# ```java public class c1031 { public static void main(String[] args) { // TODO 自动生成的方法…… 题解列表 2022年03月12日 0 点赞 0 评论 301 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:n = input(str())for i in n[::-1]: print(i,end = '')…… 题解列表 2022年04月07日 0 点赞 0 评论 406 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:就利用c++里面的reverse函数吧,头文件我用的万能模板#include<bits/stdc++.h>注意事项:看着写 就行了参考代码:#include<bits/stdc++.h> …… 题解列表 2022年04月10日 0 点赞 0 评论 354 浏览 评分:0.0
根据题意定义函数来逆序输出 摘要:解题思路:注意事项:不考虑空格情况,如有需要,加个strip就行了参考代码:def revers(n): m=n[::-1] return mdef main(): n=input(…… 题解列表 2022年04月26日 0 点赞 0 评论 284 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; for(int i=…… 题解列表 2022年05月06日 0 点赞 0 评论 293 浏览 评分:0.0
自定义函数之字符串反转 摘要:原题链接:[编程入门]自定义函数之字符串反转解题思路:其实跟数字的反转是一样的,倒叙输出就可以了注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#incl…… 题解列表 2022年05月06日 0 点赞 0 评论 292 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(函数版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int i;char T1(){ char a[100]; gets(a);int n=…… 题解列表 2022年05月06日 0 点赞 0 评论 372 浏览 评分:0.0
用数组与for循环解题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 100void oppo(char sz[],int m){ int j; for(j=m-1;j>=0;j--)…… 题解列表 2022年05月07日 0 点赞 0 评论 289 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转(利用切片解决) 摘要:解题思路:注意事项:参考代码:def main(): a = input() print(a[::-1])main()…… 题解列表 2022年05月08日 0 点赞 0 评论 375 浏览 评分:0.0