1444: 蓝桥杯2014年第五届真题-斐波那契 摘要:```cpp #include #include using namespace std; typedef long long LL; LL llmul(LL a,LL b,LL mod) …… 题解列表 2023年01月19日 1 点赞 0 评论 612 浏览 评分:9.9
3032: 扩号匹配问题 摘要:解题思路:先看一下题目,要求将不能匹配的括号在下面标出来,不能匹配的左括号用"$"标注,不能匹配的右括号用"?"标注。、例如:((ABCD(x),前面两个左括号不能匹配,所以打印出来是这样的:((AB…… 题解列表 2023年01月19日 0 点赞 0 评论 663 浏览 评分:9.9
C语言解哥德巴赫曾猜测 摘要:解题思路:用函数表示素数注意事项:无参考代码:#include<stdio.h>int sushu(a){ int i = 0; int aaa = 0; for (i = 2; i < a; i++…… 题解列表 2023年01月19日 0 点赞 0 评论 534 浏览 评分:9.9
1287: 最大质因数(算数基本定理) 摘要:解题思路:找一个数的最大质因数,只需要从2开始将它的因数都除掉,剩下的最后一个就是最大的质因数。以380为例,380/2=190 190/2=95 ,95不能/2了,就向后面找,95/5=19,这个…… 题解列表 2023年01月19日 0 点赞 0 评论 623 浏览 评分:9.9
1395: 倒数第二 摘要:解题思路:注意事项:参考代码:n = int(input())while n != 0: try: x = int(input()) a = list(map(int…… 题解列表 2023年01月19日 0 点赞 0 评论 493 浏览 评分:9.9
1065: 二级C语言-最小绝对值(简洁代码) 摘要:解题思路:第一:使用绝对值进行对比,输出时是原值第二:最小位置与最后一位进行交换使用math库里面的abs函数,其返回值是原值的绝对值,使用数组下标进行比较,可以少写一个储存最小值的变量。使用异或运算…… 题解列表 2023年01月20日 0 点赞 1 评论 549 浏览 评分:9.9
1069: 二级C语言-寻找矩阵最值 摘要:解题思路:使用下标记录最大值位置,在对比时使用数组和下标,这样可以少写一个储存最大值的变量使用abs函数,简化代码参考代码:#include <iostream> #include <cmath> …… 题解列表 2023年01月20日 0 点赞 0 评论 546 浏览 评分:9.9
C语言训练-亲密数(水题,超级简单的方法) 摘要:```c #include int yz(int n){//求因子和 int i,sum=0; for(i=1;i…… 题解列表 2023年01月20日 0 点赞 0 评论 627 浏览 评分:9.9
冒泡排序输出奇数单增序列 摘要:```c #include int main() { unsigned int num, a[500], sum = 0; scanf("%d", &num); for (int …… 题解列表 2023年01月20日 0 点赞 0 评论 500 浏览 评分:9.9
1118: Tom数(python) 摘要:解题思路:注意事项:补充大佬解法,要加上except EOFError才能运行通过参考代码:while True: try: print(sum([int(i) for i in …… 题解列表 2023年01月20日 0 点赞 0 评论 610 浏览 评分:9.9