递归倒置字符数组 用for循环 摘要:#include <stdio.h> int main() { int n,t,j; char a[100]; scanf("%d%s",&n,&a); j=n-1; for(…… 题解列表 2022年04月06日 0 点赞 0 评论 302 浏览 评分:6.0
答案%33错误的来看看 摘要:首先,要明确n不一定是奇数,有可能是偶数(我一开始没想到) 搞清这点之后,再辨明思路,不一定非要使用递归 可以使用swap函数进行操作(作用为交换两数位置) 根据题目要求,第一个和最后一个交换,…… 题解列表 2020年02月29日 0 点赞 0 评论 685 浏览 评分:6.0
小南解题---递归倒置字符数组--67ms 摘要:'''2022年03月12日 15:19:20.799zgn946'''b,a=map(str,input().split())c=int(b)//2 …… 题解列表 2022年08月27日 0 点赞 1 评论 250 浏览 评分:6.0
递归倒置字符数组(c语言) 摘要:```c #include #include void reverse(char*, int, int); int main() { int n = 0; char str[100]…… 题解列表 2023年04月20日 1 点赞 0 评论 441 浏览 评分:7.0
蓝桥杯算法提高VIP-递归倒置字符数组 (Java代码) 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class C1000 { public static void main(String[…… 题解列表 2018年03月13日 0 点赞 0 评论 908 浏览 评分:7.3
WU-蓝桥杯算法提高VIP-递归倒置字符数组 (C++代码) 摘要:参考代码:#include<iostream> #include<cstring> using namespace std; int s; void f(int n,string str) …… 题解列表 2018年01月11日 4 点赞 1 评论 1159 浏览 评分:7.3
蓝桥杯算法提高VIP-递归倒置字符数组-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; string s; void dfs(int n) { auto b…… 题解列表 2020年02月06日 0 点赞 0 评论 666 浏览 评分:7.3
蓝桥杯算法提高VIP-递归倒置字符数组-题解(C语言代码) 我也觉得很帅啊! 摘要:```c #include #include char str[100]; int len; void deal(char *a,int n) { if(n>=len/2) ret…… 题解列表 2020年03月03日 0 点赞 1 评论 330 浏览 评分:7.3
蓝桥杯算法提高VIP-递归倒置字符数组-题解(Python代码)python开荒柘,简单题,简单代码 摘要:先上代码 ```python n=input().split() s=n[1] def loop(t,s): if t==int(len(s)/2): return s L=li…… 题解列表 2020年02月16日 0 点赞 0 评论 782 浏览 评分:7.6
蓝桥杯算法提高VIP-递归倒置字符数组 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i, n; scanf("%d", &n)…… 题解列表 2018年05月01日 2 点赞 1 评论 798 浏览 评分:8.0