数学真的很重要 解题思路:这是一个数学类型的题目,代码很简单,只要核心想到了答案就出来了。最大的不能买到的数字就是两个数字的最小公倍数再减去它们之和(设它为t),为什么是这样呢?最小公倍数就是两个数都可以单独构成,在减去两个数之和这个数一定不能单独构成了,也不能组合构成了,而t再往也不能构成了。 题解列表 2024年03月18日 0 点赞 0 评论 1055 浏览 评分:0.0
2809: 菲波那契数列(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b[9999],i; scanf("%d", &a); b[0]=1,b[1]=1…… 题解列表 2024年03月18日 0 点赞 0 评论 590 浏览 评分:9.9
切开字符串-C语言 ##切开字符串-C语言函数:正回文子串种类(manacher算法)、所有子串种类-正回文子串种类```#include#defineMaxChar100001intOddPalindromicStr(intnumber,char*str);//求正回文子串数量(字符总个数、原字符串指针)intNONO 题解列表 2024年03月18日 0 点赞 0 评论 617 浏览 评分:0.0
注意‘'x"要大写 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int h,l,i,z,y; int d;const int n;const int j;int *p=&j;…… 题解列表 2024年03月17日 0 点赞 0 评论 841 浏览 评分:0.0
不知道为什么只有一半的分数 帮看感谢 摘要:```c #include int main() { long long n; long long sum; while((scanf("%lld",&n))!=E…… 题解列表 2024年03月17日 0 点赞 0 评论 693 浏览 评分:0.0
题解1671 小九九(九九乘法表)演绎代码 摘要:解题思路:首先是a*b=ca的取值范围为{1,2,3,4,5,6,7,8,9}所以先取for循环for(a=1;a<=9;a++)同理,b的取值范围为for(b=1;b<=a;b++)c的要求为占三位…… 题解列表 2024年03月17日 0 点赞 0 评论 581 浏览 评分:6.0
结构体之成绩统计2(C语言)---谢谢查看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct student{ char xuehao[5]; char name[20]; int…… 题解列表 2024年03月17日 0 点赞 0 评论 472 浏览 评分:0.0
函数重载-多个数字的差 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void Sub(int a,int b,int c,int d);void Sub(int a,int b,int c,int d) …… 题解列表 2024年03月17日 0 点赞 0 评论 642 浏览 评分:9.9
函数重载-多个数字相加 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void Add(int a,int b,int c,int d); //因为直接返回输出,所以用voidvoid Add…… 题解列表 2024年03月17日 0 点赞 1 评论 553 浏览 评分:9.9
还算还算还算清晰 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void input();void print();struct student{ char number[100]; ch…… 题解列表 2024年03月17日 0 点赞 0 评论 457 浏览 评分:9.9