蓝桥杯算法提高VIP-质因数(c语言) ```c//这个算法是有规律的就拿题目给的例子来说//99=2*3*3*5//从2开始遍历数组每次找到他的第一个因子//90/2=4545/3=1515/3=55/5=190=2*3*3*5//66/2=3333/3=1111/11=166=2*3*11#include//将一个正整数N(1 题解列表 2023年04月20日 0 点赞 0 评论 681 浏览 评分:9.9 函数数字后移 解题思路:先判断有几项需要交换,然后将需要交换的从最后一位开始交换,存放到另一个数组之中,交换的次数-1对应与数组-1交换后的位置,次数-2对应于数组-2的位置,交换之后将没有改变的几项依次复制到b数组后面的几项注意事项:参考代码:intf(intn, 题解列表 2023年04月20日 0 点赞 0 评论 527 浏览 评分:0.0 聪明的美食家_c 摘要: #include int main() {//主要思路:从前往后遍历小吃 第一家小吃默认为最大次数1 之后求出每个小吃的最大爽的次数 int n; scanf("%d", &n)…… 题解列表 2023年04月20日 0 点赞 0 评论 882 浏览 评分:9.9 2857: 加密的病历单 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cstring> #include <algorithm> using namespace std; …… 题解列表 2023年04月20日 0 点赞 0 评论 631 浏览 评分:0.0 2939: 最匹配的矩阵 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int SUM(int r,int s,int a[r][s],int b[r][s]){ …… 题解列表 2023年04月20日 0 点赞 0 评论 936 浏览 评分:9.9 水仙花数判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d; for(a=100;a<1000;a++) { b=…… 题解列表 2023年04月20日 0 点赞 0 评论 536 浏览 评分:9.9 编写题解 1097: 蛇行矩阵 不理解就找我 嘎嘎简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0; int a[20][20] = { 0 }; i…… 题解列表 2023年04月20日 0 点赞 0 评论 476 浏览 评分:0.0 二级C语言-平均值计算 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[10]; int i,sum=0,ang=0,temp=0;//定义初始化,及其计…… 题解列表 2023年04月20日 0 点赞 0 评论 761 浏览 评分:8.0 判断逗号的输出个数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ int N, M,count=0; int a[5000]; …… 题解列表 2023年04月19日 0 点赞 0 评论 454 浏览 评分:0.0 这个就是前几道题分数相加的变式 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ double s = 1;//设初值为1,表示从1开始减 i…… 题解列表 2023年04月19日 0 点赞 0 评论 528 浏览 评分:0.0 « 12...1358135913601361136213631364...59115912 »
函数数字后移 解题思路:先判断有几项需要交换,然后将需要交换的从最后一位开始交换,存放到另一个数组之中,交换的次数-1对应与数组-1交换后的位置,次数-2对应于数组-2的位置,交换之后将没有改变的几项依次复制到b数组后面的几项注意事项:参考代码:intf(intn, 题解列表 2023年04月20日 0 点赞 0 评论 527 浏览 评分:0.0
聪明的美食家_c 摘要: #include int main() {//主要思路:从前往后遍历小吃 第一家小吃默认为最大次数1 之后求出每个小吃的最大爽的次数 int n; scanf("%d", &n)…… 题解列表 2023年04月20日 0 点赞 0 评论 882 浏览 评分:9.9
2857: 加密的病历单 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cstring> #include <algorithm> using namespace std; …… 题解列表 2023年04月20日 0 点赞 0 评论 631 浏览 评分:0.0
2939: 最匹配的矩阵 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int SUM(int r,int s,int a[r][s],int b[r][s]){ …… 题解列表 2023年04月20日 0 点赞 0 评论 936 浏览 评分:9.9
水仙花数判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d; for(a=100;a<1000;a++) { b=…… 题解列表 2023年04月20日 0 点赞 0 评论 536 浏览 评分:9.9
编写题解 1097: 蛇行矩阵 不理解就找我 嘎嘎简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0; int a[20][20] = { 0 }; i…… 题解列表 2023年04月20日 0 点赞 0 评论 476 浏览 评分:0.0
二级C语言-平均值计算 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[10]; int i,sum=0,ang=0,temp=0;//定义初始化,及其计…… 题解列表 2023年04月20日 0 点赞 0 评论 761 浏览 评分:8.0
判断逗号的输出个数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ int N, M,count=0; int a[5000]; …… 题解列表 2023年04月19日 0 点赞 0 评论 454 浏览 评分:0.0
这个就是前几道题分数相加的变式 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ double s = 1;//设初值为1,表示从1开始减 i…… 题解列表 2023年04月19日 0 点赞 0 评论 528 浏览 评分:0.0