编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=1;cin>>n; for…… 题解列表 2024年06月30日 0 点赞 0 评论 450 浏览 评分:9.9
编写题解 2024: 链表删除练习 摘要:删除一位就相当于往后移了一位 void del(node* p,int m) { while (p->next) { if (p->next-…… 题解列表 2024年06月30日 0 点赞 0 评论 629 浏览 评分:10.0
计算每条线段经过的整数点并用map判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef pair<int,int> PI; map<PI,int>…… 题解列表 2024年06月30日 16 点赞 0 评论 3246 浏览 评分:7.3
题目 1045: [编程入门]自定义函数之整数处理 摘要:解题思路:搞三个功能自定义函数嘛注意事项:参考代码:#include<stdio.h>void qwe1(int a1[],int size);void qwe2(int a2[],int size)…… 题解列表 2024年07月01日 0 点赞 0 评论 298 浏览 评分:0.0
不用sorted函数两层for 循环处理的 摘要:解题思路:先输入各种要求的值,之后利用冒泡排序得到元素的升序列表注意事项:参考代码:number,shu=map(int,input().split())lit=[]for i in range(nu…… 题解列表 2024年07月01日 0 点赞 1 评论 259 浏览 评分:9.9
题解 1108: 守望者的逃离 摘要:解题思路:#include <stdio.h> int main(int argc, char** argv) { int M,S,T,su=0,t,m,time; scanf("%d%d…… 题解列表 2024年07月02日 0 点赞 0 评论 277 浏览 评分:0.0
吐槽这道题!在写交换函数时,先写交换小的是错的?! 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;void in(int a[]){for(int i=0;i…… 题解列表 2024年07月02日 0 点赞 0 评论 229 浏览 评分:9.9
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:```cpp #include using namespace std; int zdgys(int a,int b){ for(int i=a;i>=1;i--) if(a%i==0…… 题解列表 2024年07月02日 0 点赞 0 评论 387 浏览 评分:9.9
蓝桥杯2024年第十五届决赛真题-数位翻转 摘要:解题思路:这道题目可以用动态规划来解决,主要步骤如下:1.定义状态:dp[i][j][0] 表示前 i 个数中恰好选择 j 个区间,且第 i 个数没有翻转时的最大和。dp[i][j][1] 表示前 i…… 题解列表 2024年07月03日 4 点赞 0 评论 1268 浏览 评分:5.7
运用字符串求解 摘要:解题思路: 用字符串的特点, 使输入的数字转化为字符串存储, 再用length函数限制输入位数, 最后用字符串下标输出注意事项: 参考代码:#include<iostream> usin…… 题解列表 2024年07月04日 2 点赞 0 评论 322 浏览 评分:0.0