1196: 去掉空格--容易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){ int l=strlen(a); for(int i;…… 题解列表 2024年03月14日 0 点赞 0 评论 207 浏览 评分:0.0
高精度加法 摘要:解题思路:将输入的两个字符串通过split("")转化为String数组,通过for循环逆序存入int类型数组中,然后遍历将二者相加组成c数组注意事项:确保数组长度一致,否则遍历的时候可能会数组越界异…… 题解列表 2024年03月14日 0 点赞 0 评论 257 浏览 评分:0.0
易理解的计算与求和 摘要:解题思路:注意事项:累计高度加到n-1;为了便于计算全部2*之后-初始高度*1;注意幂次表达用cmath的pow表示参考代码:#include<cstdio>#include<iostream>#in…… 题解列表 2024年03月14日 0 点赞 0 评论 152 浏览 评分:0.0
c++ 找规律分奇数偶数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a[10000],n; ci…… 题解列表 2024年03月14日 0 点赞 0 评论 196 浏览 评分:0.0
简单的递归 摘要:解题思路:注意事项:注意递归的出口 和递推公式的条件参考代码:#include<cstdio>#include<iostream>#include<cstring>#include<cmath>usi…… 题解列表 2024年03月14日 0 点赞 0 评论 330 浏览 评分:0.0
java--study||O.o 摘要:参考代码: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; …… 题解列表 2024年03月14日 0 点赞 0 评论 249 浏览 评分:0.0
蓝桥杯算法训练VIP-暗恋 摘要:解题思路:维护一个二维数组的前缀和数组,随后对其检测每一个正方形,若全为1则该正方形的和为其面积。若全为0,则正方形的和为0参考代码:#include<bits/stdc++.h> using na…… 题解列表 2024年03月14日 0 点赞 0 评论 193 浏览 评分:0.0
【C语言题解】编写题解 1673: 数据结构-集合union 摘要:``` #include #include typedef struct Union{ int data; struct Union* next; }*node,Node; //建立…… 题解列表 2024年03月14日 0 点赞 0 评论 168 浏览 评分:0.0
求分段函数的解 摘要:注意事项:1<=x<10的问题,好多新手都这样写,这在c里面是比较低级的错误,应该这样写 1<=x&&x<1参考代码:#include<stdio.h>int main(){ int x,y…… 题解列表 2024年03月14日 0 点赞 0 评论 382 浏览 评分:0.0
1938: 蓝桥杯算法提高VIP-道路和航路 摘要:解题思路:有负权的单源最短路径,使用spfa算法即可注意事项:不进行SLF优化会超时两个点参考代码:#include<bits/stdc++.h> using namespace std; str…… 题解列表 2024年03月14日 0 点赞 0 评论 199 浏览 评分:0.0