最简单方法没有之一,直接使用库函数解决!!! 摘要:解题思路:直接使用#includeint iscntrl(int c) 判断字符 c是否为控制字符。int isalpha(int c) 判断字符 c 是否为英…… 题解列表 2023年11月25日 0 点赞 0 评论 393 浏览 评分:9.9
双向链表实现大整数的乘法 摘要:参考代码:#include<stdio.h> #include<string.h> #include<stdlib.h> struct lennum{ int num; struct …… 题解列表 2023年11月25日 0 点赞 0 评论 483 浏览 评分:0.0
题解 2771: 大象喝水 摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in…… 题解列表 2023年11月25日 0 点赞 0 评论 437 浏览 评分:9.9
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,k; scanf("%d%d",&a,&b); if(a<b) { …… 题解列表 2023年11月25日 0 点赞 0 评论 435 浏览 评分:0.0
2991: 八进制到十进制 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){ cin>>s; int…… 题解列表 2023年11月25日 0 点赞 0 评论 358 浏览 评分:0.0
2082: 蓝桥杯基础练习-十六进制转十进制 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){ cin>>s; int…… 题解列表 2023年11月25日 0 点赞 0 评论 486 浏览 评分:0.0
1018: [编程入门]有规律的数列求和(利用递归解决) 摘要:解题思路:首先声明一下,纯属是为了练习递归才这么写的,当时的第一想法是这与斐波那契数列类似,所以就想到用递归,分子分母从第三项开始就等于前两项的和,则fbnq(i)=fbnq2(i-1)+fbnq2(…… 题解列表 2023年11月25日 0 点赞 0 评论 366 浏览 评分:9.9
2990: 十进制到八进制 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[1000],cnt;int main(){ cin>>n; …… 题解列表 2023年11月25日 0 点赞 0 评论 462 浏览 评分:9.9
编写题解 2918: 成绩排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u { int k; string s…… 题解列表 2023年11月25日 0 点赞 0 评论 306 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,sum1=0,sum2=0,sum; scanf("%d",&n); in…… 题解列表 2023年11月25日 0 点赞 0 评论 242 浏览 评分:0.0