蓝桥杯算法提高VIP-模拟计算器 摘要:#include void main() { int a,b,k; char i; scanf("%d%d %c",&a,&b,&i); if(i=='+') k=1; i…… 题解列表 2022年05月19日 0 点赞 0 评论 368 浏览 评分:0.0
看到题解有好多朋友不是用的自定义函数,所以搞了一个 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void lianjie(char *a,char *b);int main(){ char a…… 题解列表 2022年05月19日 0 点赞 0 评论 289 浏览 评分:0.0
蓝桥杯算法提高VIP-淘淘的名单 摘要:解题思路:注意事项:参考代码://程序名:新的C++程序//作者: #include<iostream>#include<fstream>#include<algorithm>using namesp…… 题解列表 2022年05月19日 0 点赞 0 评论 309 浏览 评分:0.0
[编程入门]二进制移位练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<cmath>using namespace std;vector<int> arr;…… 题解列表 2022年05月19日 0 点赞 0 评论 299 浏览 评分:0.0
输入超过三位数的简单思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, s, g; scanf("%d", &a); b = a / 100; s…… 题解列表 2022年05月19日 0 点赞 0 评论 368 浏览 评分:0.0
利用if对输出结果进行判断 摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; while(~scanf("%d%d", &a, &b…… 题解列表 2022年05月19日 0 点赞 0 评论 306 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理(注意特殊情况,尤其容易错!) 摘要:本题的易错点在于,当你把最大值放在首位的时候,先换了最小值,最大值不在原来的位置了,后换最大值的时候就出错了;最小值同理; ```c #include int zchuli(int a[])…… 题解列表 2022年05月19日 0 点赞 0 评论 384 浏览 评分:0.0
蓝桥杯2021年第十二届国赛真题-二进制问题 -- 数位dp 摘要:```cpp #include #include using namespace std; const int N = 100; long long f[N][N]; long l…… 题解列表 2022年05月19日 0 点赞 0 评论 729 浏览 评分:0.0
求对角线之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define N 100int main(){ int n,sum=0; cin >> n;…… 题解列表 2022年05月19日 0 点赞 0 评论 338 浏览 评分:0.0
用内置函数解决问题 摘要:解题思路:将每个人学生的总成绩和学号用zip函数打包,可以实现学号和成绩的动态排序。用sort函数以及reverse函数先按总分大小进行排序,再来考虑总分相同的情况。注意事项:参考代码: n=int(…… 题解列表 2022年05月19日 0 点赞 0 评论 393 浏览 评分:0.0