LikeWater - 1575: 蓝桥杯算法提高VIP-递归倒置字符数组C++(现在有课,暂时先把答案放这儿,大家先看看,有时间我补充解释说明) 摘要:```cpp #include using namespace std; int N; // 完成一个递归程序,倒置字符数组。并打印实现过程 // 递归逻辑为: // 当字符长度等于1时,…… 题解列表 2023年03月07日 0 点赞 1 评论 392 浏览 评分:9.9
三个数找最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; int max; scanf("%d%d%d",&a,&b,&c); max=a; if(…… 题解列表 2023年03月07日 0 点赞 0 评论 575 浏览 评分:0.0
15行代码写完 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; while(cin>…… 题解列表 2023年03月07日 1 点赞 0 评论 482 浏览 评分:9.9
1058: 二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s=0; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++…… 题解列表 2023年03月07日 0 点赞 0 评论 258 浏览 评分:0.0
charAt之字符串反转 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年03月07日 0 点赞 0 评论 321 浏览 评分:0.0
c++解题思路 摘要:```cpp #include using namespace std; struct time { int year; int month; int day; };…… 题解列表 2023年03月07日 0 点赞 0 评论 408 浏览 评分:9.9
优质题解 最长上升子序列(贪心+二分) 摘要:线性DP(O(n^2)):[传送门](https://blog.dotcpp.com/a/91960 "动态规划") ------------ ## 贪心+二分(nlogn) ##### *…… 题解列表 2023年03月08日 0 点赞 0 评论 822 浏览 评分:7.3
================================================================ 摘要:参考代码:#include <stdio.h>#include <string.h>int function(char str[]){ int h1,m1,s1,h2,m2,s2,t=0; …… 题解列表 2023年03月08日 0 点赞 0 评论 453 浏览 评分:0.0
简单for循环 摘要:解题思路:1、根据对称性,只看前n/2行即可 2、发现奇数行和偶数行的规律 奇数行i/2个*-,结尾i/2个-* 中间全是 题解列表 2023年03月08日 0 点赞 0 评论 410 浏览 评分:0.0