python求回文数 摘要:解题思路:判断回文数注意事项:注意取值范围不用太大参考代码:def hui(n): L = str(n) if L == L[::-1]: return 1 else…… 题解列表 2023年03月18日 0 点赞 0 评论 660 浏览 评分:0.0
简单易懂,希望能够帮到大家 摘要:解题思路:简单的素数判断,难度不算大注意事项:注意当m==1时的情况参考代码://输入两个正整数m和n(m<n),求m到n之间(包括m和n)所有素数的和,要求定义并调用函数isprime(x)来判断x…… 题解列表 2023年03月18日 0 点赞 0 评论 238 浏览 评分:0.0
使用strcat字符串连接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char s[100]; …… 题解列表 2023年03月18日 0 点赞 0 评论 251 浏览 评分:0.0
就栈的基本应用 有解析 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n; char a; while(cin >> …… 题解列表 2023年03月18日 0 点赞 0 评论 367 浏览 评分:0.0
蓝桥杯2017年第八届真题-k倍区间(C代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h> int main(){ int n,k,i; scanf("%d%d",&n,&k); …… 题解列表 2023年03月18日 0 点赞 0 评论 348 浏览 评分:0.0
编写题解 1052: [编程入门]链表合并(c语言) 摘要: #include typedef struct student{ int id; int greed; struct student *next; }node; …… 题解列表 2023年03月18日 0 点赞 0 评论 295 浏览 评分:0.0
最小三个数 摘要:解题思路:先从小到大排序 ,在输出使用冒泡排序参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int i,j,t;…… 题解列表 2023年03月19日 0 点赞 0 评论 301 浏览 评分:0.0
#C++1841——蓝桥杯2017年第八届真题-发现环 摘要:解题思路:因为是从1开始构造,就无需排序啦*******************************参考代码:#include <iostream> using namespace std; …… 题解列表 2023年03月19日 0 点赞 0 评论 371 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#define Area(S,a,b,c) sqrt(S*(S-a)…… 题解列表 2023年03月19日 0 点赞 0 评论 255 浏览 评分:0.0
快速排序法之分治法,挖坑填数法 摘要:解题思路:注意事项: 法一 分治法注意事项 内循环的while(i<j&&nums[j]>=key)和while(i<j&&nums[i]<=key) 必须加等号法二 挖坑填数法注意事项 …… 题解列表 2023年03月19日 0 点赞 0 评论 368 浏览 评分:0.0