蓝桥杯2024年第十五届省赛真题-爬山(贪心得大部分分数) 摘要: #include using namespace std; int n,p,q; priority_queue mount;//基于大根堆 int ma…… 文章列表 2025年02月22日 1 点赞 0 评论 1873 浏览 评分:10.0
L1-033 出生年 摘要://可以在输入年份数上加10000这样可以更好解决前边补零的问题#include<iostream>#include<cstring>using&nbs…… 文章列表 2025年02月20日 0 点赞 0 评论 1894 浏览 评分:0.0
L1-025 正整数A+B 摘要://获取字符串字符串判断#include<iostream>usingnamespacestd;stringa,b;bool…… 文章列表 2025年02月19日 0 点赞 0 评论 2163 浏览 评分:0.0
L1-023 输出GPLT 摘要://注意细节处理,最后的输出#include<iostream>usingnamespacestd;strings;inta…… 文章列表 2025年02月18日 0 点赞 0 评论 2468 浏览 评分:0.0
L1-009 N个数求和 摘要://通分约分即可#include<iostream>usingnamespacestd;intn,s,d=1;…… 文章列表 2025年01月20日 0 点赞 0 评论 3261 浏览 评分:0.0
L1-006连续因子 摘要://暴力,不开longlong也无妨注意取因子的方式和范围#include<iostream>usingnamespacestd;…… 文章列表 2025年01月04日 0 点赞 0 评论 34723 浏览 评分:0.0
高精度算法(2~36进制)加法器(不好写) 摘要: #include//整个下午献给了高精度 #include #include #define m 10000 int main(void) {…… 文章列表 2025年01月01日 0 点赞 0 评论 11158 浏览 评分:0.0
高精度算法--斐波那契数列(不用二维数组)与加法相似 摘要: #include #define m 10000 int main(void) { int a[m], b[m], c[m], i, j, lc…… 文章列表 2025年01月01日 2 点赞 0 评论 30651 浏览 评分:0.0
高精度乘法(比减法简单多了) 摘要: #include #include int main(void) { char x[10000], y[10000]; int…… 文章列表 2025年01月01日 0 点赞 0 评论 6913 浏览 评分:0.0
高精度减法(与加法相似)借位与交换 摘要: #include #include void swap(char * a,char * b); void exchange(int * a,int * b); …… 文章列表 2025年01月01日 0 点赞 0 评论 35470 浏览 评分:0.0