haoxiang没人写过 摘要:解题思路:注意事项:参考代码:l=list(input().split())p=0for i in l: i=i[::-1] if p==0: print(i,end=…… 题解列表 2023年05月08日 0 点赞 1 评论 387 浏览 评分:6.0
蓝桥杯2023年第十四届省赛真题-冶炼金属—二分算法 摘要:解题思路:求最大值和最小值,可以考虑二分注意事项:参考代码:#include<iostream>using namespace std;long long a[10005][3],n;int chec…… 题解列表 2023年05月07日 0 点赞 0 评论 1179 浏览 评分:8.0
蓝桥杯2014年第五届真题-斐波那契(详细解答) 摘要:在解答本题前,我会先介绍一些待会会用到的知识。1、取模公式:(a+b)%p=(a%p+b%p)%p; (a-b)%p=(a%p-b%p)%p; …… 题解列表 2023年05月07日 0 点赞 0 评论 691 浏览 评分:9.9
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void swap(int &a,int &b){ int *p=&a,*q=&b;…… 题解列表 2023年05月07日 0 点赞 0 评论 321 浏览 评分:0.0
星期判断机 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; switch…… 题解列表 2023年05月07日 0 点赞 0 评论 279 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[5][5],sum=0,sum1=0; …… 题解列表 2023年05月07日 0 点赞 0 评论 367 浏览 评分:0.0
罗列完美数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int wanmei(int n){ int sum=0; for(in…… 题解列表 2023年05月07日 0 点赞 0 评论 331 浏览 评分:0.0
完美数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,sum=0; cin>>x; …… 题解列表 2023年05月07日 0 点赞 0 评论 283 浏览 评分:0.0
java实现链表升序合并 摘要:解题思路: 1.用输入的数据创建好两个链表。2.将两个无序链表合并成一个链表:用一个变量记录链表1的尾结点,使其下个节点指向链表2。3. 对合并后的链表进行排序:排序采取排序算法中的归并排序。个人认为…… 题解列表 2023年05月07日 1 点赞 0 评论 547 浏览 评分:9.9
60行代码!!! 摘要:解题思路:1.先创建p,q两个链表数组(我也不知道叫什么,随便取的,大佬勿喷) 2.输入数据 3.合并数组(为了后面的排序) &nbs 题解列表 2023年05月07日 0 点赞 0 评论 257 浏览 评分:0.0