水仙花数判断 摘要:解题思路:注意事项:参考代码:#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
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 评论 937 浏览 评分:9.9
聪明的美食家_c 摘要: #include int main() {//主要思路:从前往后遍历小吃 第一家小吃默认为最大次数1 之后求出每个小吃的最大爽的次数 int n; scanf("%d", &n)…… 题解列表 2023年04月20日 0 点赞 0 评论 883 浏览 评分:9.9
蓝桥杯算法提高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 评论 683 浏览 评分:9.9 蓝桥杯算法提高VIP-质因数2(和质因数1一样) 摘要:```c #include int main() { int n; scanf("%d", &n); int i = 0, j = 0, max = n, cnt=0;//和质因数1…… 题解列表 2023年04月20日 0 点赞 0 评论 720 浏览 评分:9.9 进制转换(我的怨种写法) ```c#include#includeintconvert(char*);intoct(int);intmain(){charhex[4]={0};scanf("%c%c%c",hex,hex+1,hex+2);if((hex[0]==48)&&(hex[1]==48)&&(hex[2]==48)) 题解列表 2023年04月20日 0 点赞 0 评论 595 浏览 评分:9.9 最长回文串马拉车算法(Manacher) 摘要:解题思路: 假设输入字符串为 S ① 题目关键点在于 s′ = s ⊕ rev(s) 可以字符串 s 进行一次该公式反转,然后再前后拼接 01 ,生成目标字符串 S …… 题解列表 2023年04月20日 0 点赞 0 评论 1154 浏览 评分:9.9 提货单(c语言) ```c#include#includetypedefstructdata{charmc[100];doubledj;intsl;}prut;intmain(){intn;scanf("%d",&n);getchar();prut*database=(prut*)malloc(n*sizeof(pru 题解列表 2023年04月20日 0 点赞 0 评论 654 浏览 评分:9.9 蓝桥杯算法训练VIP-学生成绩(c语言) ```c#include#includetypedefstructstudent{charname[20];charsex[7];intage;intscore;}stu;voidbubble_sort(stu*data,constintlen);intmain(){intn;scanf("%d", 题解列表 2023年04月20日 0 点赞 0 评论 730 浏览 评分:9.9 编写题解 2808: 买房子 解题思路:程序通过输入流Scanner读取年薪N和房价增长率K,并采用了一个循环结构,每年将年薪积攒到手头的积蓄中,然后判断积蓄是否足够买房子,如果足够则输出年份并退出程序。如果到了第20年仍然买不起房子,则输出Impossible。注意事项:参考代码:importjava.util.Scanner; 题解列表 2023年04月20日 0 点赞 0 评论 775 浏览 评分:9.9 « 12...5429543054315432543354345435...59115912 »
蓝桥杯算法提高VIP-质因数2(和质因数1一样) 摘要:```c #include int main() { int n; scanf("%d", &n); int i = 0, j = 0, max = n, cnt=0;//和质因数1…… 题解列表 2023年04月20日 0 点赞 0 评论 720 浏览 评分:9.9
进制转换(我的怨种写法) ```c#include#includeintconvert(char*);intoct(int);intmain(){charhex[4]={0};scanf("%c%c%c",hex,hex+1,hex+2);if((hex[0]==48)&&(hex[1]==48)&&(hex[2]==48)) 题解列表 2023年04月20日 0 点赞 0 评论 595 浏览 评分:9.9
最长回文串马拉车算法(Manacher) 摘要:解题思路: 假设输入字符串为 S ① 题目关键点在于 s′ = s ⊕ rev(s) 可以字符串 s 进行一次该公式反转,然后再前后拼接 01 ,生成目标字符串 S …… 题解列表 2023年04月20日 0 点赞 0 评论 1154 浏览 评分:9.9
提货单(c语言) ```c#include#includetypedefstructdata{charmc[100];doubledj;intsl;}prut;intmain(){intn;scanf("%d",&n);getchar();prut*database=(prut*)malloc(n*sizeof(pru 题解列表 2023年04月20日 0 点赞 0 评论 654 浏览 评分:9.9
蓝桥杯算法训练VIP-学生成绩(c语言) ```c#include#includetypedefstructstudent{charname[20];charsex[7];intage;intscore;}stu;voidbubble_sort(stu*data,constintlen);intmain(){intn;scanf("%d", 题解列表 2023年04月20日 0 点赞 0 评论 730 浏览 评分:9.9
编写题解 2808: 买房子 解题思路:程序通过输入流Scanner读取年薪N和房价增长率K,并采用了一个循环结构,每年将年薪积攒到手头的积蓄中,然后判断积蓄是否足够买房子,如果足够则输出年份并退出程序。如果到了第20年仍然买不起房子,则输出Impossible。注意事项:参考代码:importjava.util.Scanner; 题解列表 2023年04月20日 0 点赞 0 评论 775 浏览 评分:9.9