计算邮资(一般方法) 摘要:解题思路:主要利用一个向上取整函数m=ceil(),求不小于m的最大整数。补充:floor()为向下取整函数。注意事项:scanf,整型和字符型之间要有空格,要加一个头文件#include <math…… 题解列表 2023年11月05日 0 点赞 0 评论 463 浏览 评分:9.9
使用二分查找算法解猜价模拟 摘要:解题思路:二分查找法:确定被查找的范围,确定其左下标和右下标,然后再确定中间元素的下标中间元素比要找的小,要找的在中间元素的右边。中间元素比较要找的大,要找的中间元素的左边。数组在传参的时候仅仅传过去…… 题解列表 2023年11月05日 0 点赞 0 评论 221 浏览 评分:9.9
C++_dfs容易理解 摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar…… 题解列表 2023年11月05日 0 点赞 1 评论 332 浏览 评分:10.0
C语言 AC通过 摘要:include <stdio.h> #include <string.h> int main() { char input[1001]; scanf("%s", input);…… 题解列表 2023年11月05日 0 点赞 0 评论 251 浏览 评分:9.9
c语言求解链表之节点删除 摘要:```c #include #include #define _CRT_SECURE_NO_WARNINGS 1 typedef struct student { int num;…… 题解列表 2023年11月05日 0 点赞 0 评论 363 浏览 评分:0.0
非递归方法解决最长公共子序列 摘要:解题思路:使用二维数组来记录相等的情况,根据左边和上方的数字以及相等的情况来为二维数组赋值注意事项:起始项为【1,1】,所以要i-1,j-1;参考代码:#include <iostream>#incl…… 题解列表 2023年11月05日 0 点赞 0 评论 356 浏览 评分:9.9
c++ STL解法,用上vector容器 摘要:#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int…… 题解列表 2023年11月05日 0 点赞 0 评论 229 浏览 评分:8.0
JAVA的简单解法 摘要:解题思路:注意事项:主要注意要使用Math.ceil()向上取整参考代码:import java.util.Scanner;public class Main { public static v…… 题解列表 2023年11月05日 0 点赞 0 评论 353 浏览 评分: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 评论 204 浏览 评分:0.0
新手简单快速解决!!! 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, x = 0, y = 0; cin …… 题解列表 2023年11月05日 0 点赞 0 评论 201 浏览 评分:0.0