使用二分查找算法解猜价模拟 摘要:解题思路:二分查找法:确定被查找的范围,确定其左下标和右下标,然后再确定中间元素的下标中间元素比要找的小,要找的在中间元素的右边。中间元素比较要找的大,要找的中间元素的左边。数组在传参的时候仅仅传过去…… 题解列表 2023年11月05日 0 点赞 0 评论 405 浏览 评分:9.9
C++_dfs容易理解 摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar…… 题解列表 2023年11月05日 0 点赞 1 评论 494 浏览 评分:10.0
C语言 AC通过 摘要:include <stdio.h> #include <string.h> int main() { char input[1001]; scanf("%s", input);…… 题解列表 2023年11月05日 0 点赞 0 评论 495 浏览 评分:9.9
c语言求解链表之节点删除 摘要:```c #include #include #define _CRT_SECURE_NO_WARNINGS 1 typedef struct student { int num;…… 题解列表 2023年11月05日 0 点赞 0 评论 572 浏览 评分:0.0
非递归方法解决最长公共子序列 摘要:解题思路:使用二维数组来记录相等的情况,根据左边和上方的数字以及相等的情况来为二维数组赋值注意事项:起始项为【1,1】,所以要i-1,j-1;参考代码:#include <iostream>#incl…… 题解列表 2023年11月05日 0 点赞 0 评论 518 浏览 评分:9.9
c++ STL解法,用上vector容器 摘要:#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int…… 题解列表 2023年11月05日 0 点赞 0 评论 407 浏览 评分:8.0
JAVA的简单解法 摘要:解题思路:注意事项:主要注意要使用Math.ceil()向上取整参考代码:import java.util.Scanner;public class Main { public static v…… 题解列表 2023年11月05日 0 点赞 0 评论 518 浏览 评分:9.0
蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a, b, n, day = 0; scanf("%ld%ld%ld", &a, …… 题解列表 2023年11月05日 0 点赞 0 评论 385 浏览 评分:0.0
新手简单快速解决!!! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, x = 0, y = 0; cin …… 题解列表 2023年11月05日 0 点赞 0 评论 390 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:在这题中使用定义宏的方法比使用定义函数的方法更简单注意事项:#define 定义常量和宏注意 #define 后面没有分号;#define 常量名 常量值#define 宏名 宏表达式参考代…… 题解列表 2023年11月05日 0 点赞 0 评论 338 浏览 评分:0.0