阶乘求和易忽视的地方 摘要:解题思路:两个变量,一个记录最新值,一个记录和注意事项:上面两变量要用long int 定义,超出int范围参考代码:#include<stdio.h>int main(){ int n,i; …… 题解列表 2022年02月28日 0 点赞 0 评论 313 浏览 评分:0.0
[编程入门]求和训练易错点 摘要:解题思路:注意事项:!!!记得将i设为double而不是Int,不然计算1/i时会自动强制为int 而导致小数点后面全都被舍弃,从而导致结果有误差!!!参考代码:#include<stdio.h>in…… 题解列表 2022年02月28日 0 点赞 0 评论 215 浏览 评分:0.0
蓝桥杯2021年第十二届省赛真题-时间显示 摘要:#include<stdio.h>int main(){ long long s; scanf("%lld",&s); int ss=s/1000; int hh=ss/360…… 题解列表 2022年02月28日 0 点赞 0 评论 556 浏览 评分:6.0
优质题解 迷宫问题(C代码) 摘要:**解题思路**:如何求最短路径?我们可以建立一个队列,过程如下 (1)将起点(0,0)入队, (2)如果队列为空,则问题无解,退出执行 (3)将当前的队头结点出队,并检查该节点是不…… 题解列表 2022年02月28日 0 点赞 0 评论 702 浏览 评分:9.9
C语言训练-斐波纳契数列 摘要:```cpp #include using namespace std; int main(){ int n; cin>>n; int a=0,b=1,c; while(n-…… 题解列表 2022年02月28日 0 点赞 0 评论 497 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码: #include"bits/stdc++.h" using namespace std; int main(){ int n; int flag=0; …… 题解列表 2022年02月28日 0 点赞 0 评论 257 浏览 评分:0.0
认真看肯定能懂的,型芯我! 摘要:解题思路:注意事项:参考代码:import java.io.BufferedInputStream; import java.lang.reflect.Array; import java.mat…… 题解列表 2022年02月28日 0 点赞 0 评论 262 浏览 评分:0.0
2084: 蓝桥杯基础练习-特殊回文数(JAVA) 摘要:import java.util.Scanner; public class Test { public static void main(String[] args) { …… 题解列表 2022年02月28日 0 点赞 0 评论 386 浏览 评分:0.0
信息学奥赛一本通T1314-过河卒(二维递推思想) 摘要:#include<stdio.h>int main(){ int n,m,xc,yc; scanf("%d %d %d %d",&n,&m,&xc,&yc); int f[100][…… 题解列表 2022年02月28日 1 点赞 0 评论 985 浏览 评分:8.9
蓝桥杯算法提高VIP-快速幂 摘要:**解题思路:** **快速幂** ```cpp 快速幂乘法,将指数看成由0和1构成的二进制数,按位进行运算,对于大数还要“步步取模” #include #include usin…… 题解列表 2022年02月28日 0 点赞 0 评论 618 浏览 评分:9.9