蓝桥杯算法提高VIP-淘淘的名单 摘要:解题思路:注意事项:参考代码://程序名:新的C++程序//作者: #include<iostream>#include<fstream>#include<algorithm>using namesp…… 题解列表 2022年05月19日 0 点赞 0 评论 553 浏览 评分:0.0
[编程入门]二进制移位练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<cmath>using namespace std;vector<int> arr;…… 题解列表 2022年05月19日 0 点赞 0 评论 526 浏览 评分:0.0
输入超过三位数的简单思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, s, g; scanf("%d", &a); b = a / 100; s…… 题解列表 2022年05月19日 0 点赞 0 评论 609 浏览 评分:0.0
利用if对输出结果进行判断 摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; while(~scanf("%d%d", &a, &b…… 题解列表 2022年05月19日 0 点赞 0 评论 540 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理(注意特殊情况,尤其容易错!) 本题的易错点在于,当你把最大值放在首位的时候,先换了最小值,最大值不在原来的位置了,后换最大值的时候就出错了;最小值同理;```c#includeintzchuli(inta[]){intminnum=0,maxnum=0,j;for(j=0;j 题解列表 2022年05月19日 0 点赞 0 评论 644 浏览 评分:0.0
蓝桥杯2021年第十二届国赛真题-二进制问题 -- 数位dp ```cpp#include#includeusingnamespacestd;constintN=100;longlongf[N][N];longlonga[N],al;longlongn,k;longlongdp(intpos,intst, 题解列表 2022年05月19日 0 点赞 0 评论 1017 浏览 评分:0.0
求对角线之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define N 100int main(){ int n,sum=0; cin >> n;…… 题解列表 2022年05月19日 0 点赞 0 评论 601 浏览 评分:0.0
用内置函数解决问题 摘要:解题思路:将每个人学生的总成绩和学号用zip函数打包,可以实现学号和成绩的动态排序。用sort函数以及reverse函数先按总分大小进行排序,再来考虑总分相同的情况。注意事项:参考代码: n=int(…… 题解列表 2022年05月19日 0 点赞 0 评论 668 浏览 评分:0.0
题解 1095: The 3n + 1 problem 关于超时 摘要:注意事项:关于超时,while(a!=1)我写成while(a>=1)就超时了,不太明白参考代码:#include<iostream> #include<string> using namespa…… 题解列表 2022年05月20日 0 点赞 0 评论 561 浏览 评分:0.0
[编程入门]数字的处理与判断-两个for循环 摘要:解题思路:构造一个求位数的函数,得到位数,利用求余,除法求出倒数等注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>i…… 题解列表 2022年05月20日 0 点赞 0 评论 590 浏览 评分:0.0