最小n值;注意输出! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double sum=0; long int n=1,m; scanf("%ld",&m); while(1){…… 题解列表 2022年11月16日 0 点赞 0 评论 251 浏览 评分:9.9
C语言 自定义函数之字符串反转& 摘要:解题思路:注意事项:本写法没有参考价值,仅供纪念,用上strlen(计算字符串的实际长度不包括末尾的'\0')参考代码:#include<stdio.h>#define Long 20…… 题解列表 2022年11月16日 0 点赞 0 评论 201 浏览 评分:0.0
靠数学公式 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int M,N; scanf("%d%d",&M,&N); float h,s;…… 题解列表 2022年11月16日 0 点赞 0 评论 228 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define MAXSIZE 1000 //宏定义,将下文的所有MAXSIZE替换为1000 int main() {…… 题解列表 2022年11月16日 0 点赞 0 评论 165 浏览 评分:0.0
C语言代码,刚了解动态规划,可以看看我的理解,写得很详细 摘要:  摘要:```cpp #include using namespace std; //自定义排序规则 bool cmp(int x,int y){ return fabs(x)>fabs(y…… 题解列表 2022年11月15日 0 点赞 0 评论 340 浏览 评分:9.9
3019: 约瑟夫问题 摘要:解题思路:利用数组存储注意事项:参考代码:#include<stdio.h>int main(){ int n,m,i,j=1,count=0; int a[10001],b[1000…… 题解列表 2022年11月15日 0 点赞 0 评论 517 浏览 评分:9.0
编写题解 2758: 打印ASCII码 摘要:解题思路:很简单的输入输出注意事项:参考代码:char ch = 'a'; scanf("%c", &ch); printf("%d", ch);…… 题解列表 2022年11月15日 0 点赞 0 评论 656 浏览 评分:4.0
自定义函数处理素数 摘要:解题思路:以个位数为单位,其余数字对个位数求余不为0(除去1-9内的偶数),其余数字就是素数注意事项:参考代码:int jud_prime(int x){ int i; for(i=2;i…… 题解列表 2022年11月15日 0 点赞 0 评论 184 浏览 评分:0.0