蓝桥杯算法提高VIP-递归倒置字符数组 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; void cov(char str[], int L, int R) { if…… 题解列表 2018年07月21日 2 点赞 0 评论 731 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组(真·递归解法) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2023年03月24日 0 点赞 0 评论 98 浏览 评分:0.0
递归倒置字符数组简便解法 摘要:n=list(input().split()) x=[] for i in n[1]: x.append(i) m=int(n[0])//2 a=0 b=int(n[0])-1 …… 题解列表 2023年03月31日 0 点赞 0 评论 126 浏览 评分:0.0
随便写写,哈哈哈哈哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int n;string f(char ch[], int i) { //一个retu…… 题解列表 2023年03月31日 0 点赞 0 评论 149 浏览 评分:0.0
蓝桥杯算法提高VIP-递归倒置字符数组-题解(Python代码) 摘要:重点是找规律:,我们以 9 abcdefghi为例:length=9 | i的序号 | 要交换的数组序号 | 交换后i的值 | | ------------ | ------------ …… 题解列表 2020年02月05日 0 点赞 0 评论 538 浏览 评分:0.0
不用多余变量完成 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void dg(int n, char* arr){ if (n - strlen(arr…… 题解列表 2024年03月07日 1 点赞 0 评论 244 浏览 评分:0.0
这个题细节很多,wa了很多次 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; string s; cin>>n>…… 题解列表 2024年08月08日 0 点赞 0 评论 158 浏览 评分:0.0
C++使用Swap函数倒置字符串 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int num = 0;// 读入字符串长度 cin >…… 题解列表 2024年10月07日 0 点赞 0 评论 173 浏览 评分:0.0
花落的新手代码(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; inline void exchange(char &a,char &b) { …… 题解列表 2018年03月16日 0 点赞 0 评论 791 浏览 评分:0.0
蓝桥杯算法提高VIP-递归倒置字符数组-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int len; cin >> len; …… 题解列表 2020年01月28日 0 点赞 0 评论 596 浏览 评分:0.0